aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2009-12-16 21:33:18 +0000
committerFrancis Irving <francis@mysociety.org>2009-12-16 21:33:18 +0000
commit571c32eab1cd1189993e0269e2ae7034c30c68f7 (patch)
tree3340d725409ad9b609230c811a716d86d35984ac
parentbc2cf7b39c998a5a7e3f4cf8f00eeaf1365bc8ad (diff)
Mock the new is_school? function
-rw-r--r--spec/views/request/show.rhtml_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/views/request/show.rhtml_spec.rb b/spec/views/request/show.rhtml_spec.rb
index 4110dc0c2..22860f0c5 100644
--- a/spec/views/request/show.rhtml_spec.rb
+++ b/spec/views/request/show.rhtml_spec.rb
@@ -4,7 +4,8 @@ describe 'when viewing an information request' do
before do
@mock_body = mock_model(PublicBody, :name => 'test body',
- :url_name => 'test_body')
+ :url_name => 'test_body',
+ :is_school? => false)
@mock_user = mock_model(User, :name => 'test user',
:url_name => 'test_user')
@mock_request = mock_model(InfoRequest, :title => 'test request',