diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-11-27 12:53:13 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 09:32:45 +0000 |
commit | 0f43f36254c9bbd1a66f5fd0951d5c2517581e4d (patch) | |
tree | 49190077f7ce5ab895f991054832ec70bf377440 /spec/controllers/user_controller_spec.rb | |
parent | f31ff5e5cfd6247338ad769c713a7f21af4a0623 (diff) |
Display batch requests for user on 'my requests' page
This is the most rudimentary possible way to give them access to the batch request urls, pending #1239
Diffstat (limited to 'spec/controllers/user_controller_spec.rb')
-rw-r--r-- | spec/controllers/user_controller_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/controllers/user_controller_spec.rb b/spec/controllers/user_controller_spec.rb index 7a9981a04..cf361d898 100644 --- a/spec/controllers/user_controller_spec.rb +++ b/spec/controllers/user_controller_spec.rb @@ -58,9 +58,10 @@ describe UserController, "when showing a user" do get :show, {:url_name => @user.url_name, :view => 'profile'}, {:user_id => @user.id} end - it 'should not show requests but should show account options' do + it 'should not show requests, or batch requests, but should show account options' do make_request response.body.should_not match(/Freedom of Information requests made by you/) + assigns[:show_batches].should be_false response.body.should include("Change your password") end @@ -74,9 +75,10 @@ describe UserController, "when showing a user" do get :show, {:url_name => @user.url_name, :view => 'requests'}, {:user_id => @user.id} end - it 'should show requests but no account options' do + it 'should show requests, batch requests, but no account options' do make_request response.body.should match(/Freedom of Information requests made by you/) + assigns[:show_batches].should be_true response.body.should_not include("Change your password") end |