aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/user_controller_spec.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-01-12 17:56:56 +0000
committerRobin Houston <robin.houston@gmail.com>2012-01-12 17:56:56 +0000
commit5e400fd939091a12515b069d618b9e7b18bb4016 (patch)
tree6d123ac3565bc5351a7c8fc94819e03460e7e0b9 /spec/controllers/user_controller_spec.rb
parentcb020f57f9cec5610c40bbcb85257776c27642a1 (diff)
parent0aafbd4a25b5c4c0edbd87c2224dcdd18388ede5 (diff)
Merge branch 'release/0.5' of https://github.com/sebbacon/alaveteli into release/0.5
Conflicts: app/controllers/request_controller.rb
Diffstat (limited to 'spec/controllers/user_controller_spec.rb')
-rw-r--r--spec/controllers/user_controller_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/controllers/user_controller_spec.rb b/spec/controllers/user_controller_spec.rb
index 2560b48c7..30ad61706 100644
--- a/spec/controllers/user_controller_spec.rb
+++ b/spec/controllers/user_controller_spec.rb
@@ -111,15 +111,16 @@ describe UserController, "when signing in" do
it "should not log you in if you use an invalid PostRedirect token, and shouldn't give 500 error either" do
ActionController::Routing::Routes.filters.clear
- get :signin, :r => "/list"
- response.should render_template('sign')
post_redirect = "something invalid"
lambda {
post :signin, { :user_signin => { :email => 'bob@localhost', :password => 'jonespassword' },
:token => post_redirect
}
}.should_not raise_error(NoMethodError)
+ post :signin, { :user_signin => { :email => 'bob@localhost', :password => 'jonespassword' },
+ :token => post_redirect }
response.should render_template('sign')
+ assigns[:post_redirect].should == nil
end
# No idea how to test this in the test framework :(