From fd4c68695a5f0f5b1c34014e63a98ce2585d930c Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 6 Aug 2010 02:21:55 -0300 Subject: [PATCH] Fixing acceptance tests --- db/schema.rb | 2 +- features/publish_article.feature | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index ed52acc..5792443 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -223,8 +223,8 @@ ActiveRecord::Schema.define(:version => 20100730141134) do end create_table "inputs", :force => true do |t| - t.integer "product_category_id", :null => false t.integer "product_id", :null => false + t.integer "product_category_id", :null => false t.datetime "created_at" t.datetime "updated_at" end diff --git a/features/publish_article.feature b/features/publish_article.feature index 811a036..f824ee4 100644 --- a/features/publish_article.feature +++ b/features/publish_article.feature @@ -24,7 +24,7 @@ Feature: publish article And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" - And I press "Publish" + And I press "Spread this" And I am on Sample Community's homepage And I follow "View profile" And I go to Sample Community's sitemap @@ -39,7 +39,7 @@ Feature: publish article And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" - And I press "Publish" + And I press "Spread this" And I am not logged in And I am logged in as "mariasilva" And "Maria Silva" is a member of "Sample Community" @@ -53,7 +53,7 @@ Feature: publish article And I press "Save" And I follow "Spread" And I check "Sample Community" - When I press "Publish" + When I press "Spread this" Then I should see "The title (article name) is already being used by another article, please use another title." Scenario: publishing an article in many communities and listing the communities that couldn't publish the article again, @@ -70,7 +70,7 @@ Feature: publish article And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" - And I press "Publish" + And I press "Spread this" And I should not see "This article name is already in use in the following community(ies):" And I am on Joao Silva's control panel And I follow "Manage Content" @@ -78,7 +78,7 @@ Feature: publish article And I check "Sample Community" And I check "Another Community1" And I check "Another Community2" - When I press "Publish" + When I press "Spread this" Then I should see "The title (article name) is already being used by another article, please use another title." And I am on Another Community1's homepage And I follow "View profile" @@ -101,12 +101,12 @@ Feature: publish article And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" - And I press "Publish" + And I press "Spread this" And I am on Joao Silva's control panel And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" - And I press "Publish" + And I press "Spread this" And I am on Sample Community's control panel And I follow "Tasks" And I press "Ok!" @@ -125,7 +125,7 @@ Feature: publish article And I follow "Manage Content" And I follow "Spread" And I check "Sample Community" - And I press "Publish" + And I press "Spread this" And "joaosilva" has no articles And I am on Sample Community's control panel When I follow "Tasks" -- libgit2 0.21.2