diff options
author | francis <francis> | 2008-05-16 19:19:41 +0000 |
---|---|---|
committer | francis <francis> | 2008-05-16 19:19:41 +0000 |
commit | 7b58c144dcadce60295fddc89b787677a6881dfc (patch) | |
tree | 58fc107573e408b6c7c0d86f88b3308b820cd7f1 /spec/controllers/request_controller_spec.rb | |
parent | e1e621112a368fa988cccbac7e87a2895289d0cc (diff) |
Fix bug when comparing new requests, caused by removal of space in body function.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index 411b2948b..d7a199a96 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -160,10 +160,12 @@ describe RequestController, "when creating a new request" do end it "should give an error if the same request is submitted twice" do + session[:user_id] = users(:bob_smith_user).id + post :new, :info_request => { :public_body_id => info_requests(:fancy_dog_request).public_body_id, - :title => info_requests(:fancy_dog_request).title}, + :title => info_requests(:fancy_dog_request).title }, :outgoing_message => { :body => info_requests(:fancy_dog_request).outgoing_messages[0].body}, - :submitted_new_request => 1, :preview => 0 + :submitted_new_request => 1, :preview => 0, :mouse_house => 1 response.should render_template('new') end |