aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/models/public_body_category_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/public_body_category_spec.rb b/spec/models/public_body_category_spec.rb
index 2d39a7376..c185a3169 100644
--- a/spec/models/public_body_category_spec.rb
+++ b/spec/models/public_body_category_spec.rb
@@ -61,5 +61,11 @@ describe PublicBodyCategory do
existing = FactoryGirl.create(:public_body_category)
PublicBodyCategory.new(:email => existing.category_tag).should_not be_valid
end
+
+ it 'should require a description' do
+ category = PublicBodyCategory.new
+ category.should_not be_valid
+ category.errors[:description].should == ["Description can't be blank"]
+ end
end
end