From 7ff363177ebb76361aed2682382de24ef66c7408 Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Mon, 16 Jul 2012 18:58:10 +0100 Subject: Beef up mocks Add the user_name and is_external? properties to the InfoRequest mock objects used for view testing, where necessary. --- spec/views/request/_after_actions.rhtml_spec.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/views/request/_after_actions.rhtml_spec.rb') diff --git a/spec/views/request/_after_actions.rhtml_spec.rb b/spec/views/request/_after_actions.rhtml_spec.rb index 6a56e7a71..d04db3fc2 100644 --- a/spec/views/request/_after_actions.rhtml_spec.rb +++ b/spec/views/request/_after_actions.rhtml_spec.rb @@ -9,6 +9,8 @@ describe 'when displaying actions that can be taken with regard to a request' do :url_name => 'test_user') @mock_request = mock_model(InfoRequest, :title => 'test request', :user => @mock_user, + :user_name => @mock_user.name, + :is_external? => false, :public_body => @mock_body, :url_title => 'test_request') assigns[:info_request] = @mock_request -- cgit v1.2.3