diff options
| author | Gareth Rees <gareth@mysociety.org> | 2014-06-25 14:33:14 +0100 |
|---|---|---|
| committer | Gareth Rees <gareth@mysociety.org> | 2014-06-25 14:33:14 +0100 |
| commit | 9ff7d18662de6aa345a3317ded7e65eba3761907 (patch) | |
| tree | 33f47e11accc613d9be3d7df1cd4307d9a3dcda0 /spec/models | |
| parent | fe5880e555f98350b4c08a4885c560e35692687f (diff) | |
| parent | 249a1ef17747deadc773b6474df990d803294c44 (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.rb | 14 |
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 |
