aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-06-25 14:33:14 +0100
committerGareth Rees <gareth@mysociety.org>2014-06-25 14:33:14 +0100
commit9ff7d18662de6aa345a3317ded7e65eba3761907 (patch)
tree33f47e11accc613d9be3d7df1cd4307d9a3dcda0 /spec/models
parentfe5880e555f98350b4c08a4885c560e35692687f (diff)
parent249a1ef17747deadc773b6474df990d803294c44 (diff)
Merge branch 'issues/1415-bulk-update-public-bodies' into rails-3-develop
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/public_body_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb
index 0e1db6986..a7544c218 100644
--- a/spec/models/public_body_spec.rb
+++ b/spec/models/public_body_spec.rb
@@ -594,6 +594,20 @@ describe PublicBody do
end
+ describe :site_administration? do
+
+ it 'is true when the body has the site_administration tag' do
+ p = FactoryGirl.build(:public_body, :tag_string => 'site_administration')
+ p.site_administration?.should be_true
+ end
+
+ it 'is false when the body does not have the site_administration tag' do
+ p = FactoryGirl.build(:public_body)
+ p.site_administration?.should be_false
+ end
+
+ end
+
end
describe PublicBody, " when override all public body request emails set" do