Commit fdaecd8862786964d8df442f7281b4154ff2f8c5
1 parent
e62f914a
Exists in
master
and in
29 other branches
ActionItem154: fixing bug in test: must not assume a specific id for fuxture data
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1410 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/functional/profile_design_controller_test.rb
... | ... | @@ -150,7 +150,7 @@ class ProfileDesignControllerTest < Test::Unit::TestCase |
150 | 150 | |
151 | 151 | should 'actually add a new block' do |
152 | 152 | assert_difference Block, :count do |
153 | - post :add_block, :profile => 'ze', :box_id => 1, :type => RecentDocumentsBlock.name | |
153 | + post :add_block, :profile => 'ze', :box_id => @box1.id, :type => RecentDocumentsBlock.name | |
154 | 154 | assert_redirected_to :action => 'index' |
155 | 155 | end |
156 | 156 | end |
... | ... | @@ -158,7 +158,7 @@ class ProfileDesignControllerTest < Test::Unit::TestCase |
158 | 158 | should 'not allow to create unknown types' do |
159 | 159 | assert_no_difference Block, :count do |
160 | 160 | assert_raise ArgumentError do |
161 | - post :add_block, :profile => 'ze', :box_id => 1, :type => "PleaseLetMeCrackYourSite" | |
161 | + post :add_block, :profile => 'ze', :box_id => @box1.id, :type => "PleaseLetMeCrackYourSite" | |
162 | 162 | end |
163 | 163 | end |
164 | 164 | end | ... | ... |