aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/request/show.rhtml_spec.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-07-16 18:58:10 +0100
committerLouise Crow <louise.crow@gmail.com>2012-08-16 16:06:36 +0100
commit0703efa26d3de27f7d3a8ac26652068a632d13ca (patch)
tree1ab93d4d7768c09784794e903bbca85ec9831be0 /spec/views/request/show.rhtml_spec.rb
parent4612f4c4b721157c6d14f277f97f7b262de0e550 (diff)
Beef up mocks
Add the user_name and is_external? properties to the InfoRequest mock objects used for view testing, where necessary.
Diffstat (limited to 'spec/views/request/show.rhtml_spec.rb')
-rw-r--r--spec/views/request/show.rhtml_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/views/request/show.rhtml_spec.rb b/spec/views/request/show.rhtml_spec.rb
index ef7d1a47c..4429e9e58 100644
--- a/spec/views/request/show.rhtml_spec.rb
+++ b/spec/views/request/show.rhtml_spec.rb
@@ -15,6 +15,8 @@ describe 'when viewing an information request' do
:law_used_full => 'Freedom of Information',
:public_body => @mock_body,
:user => @mock_user,
+ :user_name => @mock_user.name,
+ :is_external? => false,
:calculate_status => 'waiting_response',
:date_response_required_by => Date.today,
:prominence => 'normal')