diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-12-12 17:16:54 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-12-12 17:16:54 +1100 |
commit | 96471fd4ccf821e6d2f6e34732a932d95a68bad8 (patch) | |
tree | c4f03c8f8849eb7df4b342744ed4f850aa182cf7 /spec/views/request/_after_actions.rhtml_spec.rb | |
parent | 1e7e8b5f73f5680b4c68063680ed5335c070987f (diff) |
Update view test assignment API
Diffstat (limited to 'spec/views/request/_after_actions.rhtml_spec.rb')
-rw-r--r-- | spec/views/request/_after_actions.rhtml_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/views/request/_after_actions.rhtml_spec.rb b/spec/views/request/_after_actions.rhtml_spec.rb index 5b4734c52..cbf91f2d4 100644 --- a/spec/views/request/_after_actions.rhtml_spec.rb +++ b/spec/views/request/_after_actions.rhtml_spec.rb @@ -14,7 +14,7 @@ describe 'when displaying actions that can be taken with regard to a request' do :public_body => @mock_body, :comments_allowed? => true, :url_title => 'test_request') - assigns[:info_request] = @mock_request + assign :info_request, @mock_request end def do_render @@ -50,7 +50,7 @@ describe 'when displaying actions that can be taken with regard to a request' do describe 'if the request is old and unclassified' do before do - assigns[:old_unclassified] = true + assign :old_unclassified, true end it 'should not display a link for the request owner to update the status of the request' do @@ -66,7 +66,7 @@ describe 'when displaying actions that can be taken with regard to a request' do describe 'if the request is not old and unclassified' do before do - assigns[:old_unclassified] = false + assign :old_unclassified, false end it 'should display a link for the request owner to update the status of the request' do |