Commit fd4c68695a5f0f5b1c34014e63a98ce2585d930c

Authored by Antonio Terceiro
1 parent 58de1651

Fixing acceptance tests

(ActionItem1606)
@@ -223,8 +223,8 @@ ActiveRecord::Schema.define(:version => 20100730141134) do @@ -223,8 +223,8 @@ ActiveRecord::Schema.define(:version => 20100730141134) do
223 end 223 end
224 224
225 create_table "inputs", :force => true do |t| 225 create_table "inputs", :force => true do |t|
226 - t.integer "product_category_id", :null => false  
227 t.integer "product_id", :null => false 226 t.integer "product_id", :null => false
  227 + t.integer "product_category_id", :null => false
228 t.datetime "created_at" 228 t.datetime "created_at"
229 t.datetime "updated_at" 229 t.datetime "updated_at"
230 end 230 end
features/publish_article.feature
@@ -24,7 +24,7 @@ Feature: publish article @@ -24,7 +24,7 @@ Feature: publish article
24 And I follow "Manage Content" 24 And I follow "Manage Content"
25 And I follow "Spread" 25 And I follow "Spread"
26 And I check "Sample Community" 26 And I check "Sample Community"
27 - And I press "Publish" 27 + And I press "Spread this"
28 And I am on Sample Community's homepage 28 And I am on Sample Community's homepage
29 And I follow "View profile" 29 And I follow "View profile"
30 And I go to Sample Community's sitemap 30 And I go to Sample Community's sitemap
@@ -39,7 +39,7 @@ Feature: publish article @@ -39,7 +39,7 @@ Feature: publish article
39 And I follow "Manage Content" 39 And I follow "Manage Content"
40 And I follow "Spread" 40 And I follow "Spread"
41 And I check "Sample Community" 41 And I check "Sample Community"
42 - And I press "Publish" 42 + And I press "Spread this"
43 And I am not logged in 43 And I am not logged in
44 And I am logged in as "mariasilva" 44 And I am logged in as "mariasilva"
45 And "Maria Silva" is a member of "Sample Community" 45 And "Maria Silva" is a member of "Sample Community"
@@ -53,7 +53,7 @@ Feature: publish article @@ -53,7 +53,7 @@ Feature: publish article
53 And I press "Save" 53 And I press "Save"
54 And I follow "Spread" 54 And I follow "Spread"
55 And I check "Sample Community" 55 And I check "Sample Community"
56 - When I press "Publish" 56 + When I press "Spread this"
57 Then I should see "The title (article name) is already being used by another article, please use another title." 57 Then I should see "The title (article name) is already being used by another article, please use another title."
58 58
59 Scenario: publishing an article in many communities and listing the communities that couldn't publish the article again, 59 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 @@ -70,7 +70,7 @@ Feature: publish article
70 And I follow "Manage Content" 70 And I follow "Manage Content"
71 And I follow "Spread" 71 And I follow "Spread"
72 And I check "Sample Community" 72 And I check "Sample Community"
73 - And I press "Publish" 73 + And I press "Spread this"
74 And I should not see "This article name is already in use in the following community(ies):" 74 And I should not see "This article name is already in use in the following community(ies):"
75 And I am on Joao Silva's control panel 75 And I am on Joao Silva's control panel
76 And I follow "Manage Content" 76 And I follow "Manage Content"
@@ -78,7 +78,7 @@ Feature: publish article @@ -78,7 +78,7 @@ Feature: publish article
78 And I check "Sample Community" 78 And I check "Sample Community"
79 And I check "Another Community1" 79 And I check "Another Community1"
80 And I check "Another Community2" 80 And I check "Another Community2"
81 - When I press "Publish" 81 + When I press "Spread this"
82 Then I should see "The title (article name) is already being used by another article, please use another title." 82 Then I should see "The title (article name) is already being used by another article, please use another title."
83 And I am on Another Community1's homepage 83 And I am on Another Community1's homepage
84 And I follow "View profile" 84 And I follow "View profile"
@@ -101,12 +101,12 @@ Feature: publish article @@ -101,12 +101,12 @@ Feature: publish article
101 And I follow "Manage Content" 101 And I follow "Manage Content"
102 And I follow "Spread" 102 And I follow "Spread"
103 And I check "Sample Community" 103 And I check "Sample Community"
104 - And I press "Publish" 104 + And I press "Spread this"
105 And I am on Joao Silva's control panel 105 And I am on Joao Silva's control panel
106 And I follow "Manage Content" 106 And I follow "Manage Content"
107 And I follow "Spread" 107 And I follow "Spread"
108 And I check "Sample Community" 108 And I check "Sample Community"
109 - And I press "Publish" 109 + And I press "Spread this"
110 And I am on Sample Community's control panel 110 And I am on Sample Community's control panel
111 And I follow "Tasks" 111 And I follow "Tasks"
112 And I press "Ok!" 112 And I press "Ok!"
@@ -125,7 +125,7 @@ Feature: publish article @@ -125,7 +125,7 @@ Feature: publish article
125 And I follow "Manage Content" 125 And I follow "Manage Content"
126 And I follow "Spread" 126 And I follow "Spread"
127 And I check "Sample Community" 127 And I check "Sample Community"
128 - And I press "Publish" 128 + And I press "Spread this"
129 And "joaosilva" has no articles 129 And "joaosilva" has no articles
130 And I am on Sample Community's control panel 130 And I am on Sample Community's control panel
131 When I follow "Tasks" 131 When I follow "Tasks"