diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-03-14 10:42:32 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-03-25 09:58:00 +0000 |
commit | 271adedcd705c7e6aa61e9706b5dc2832dea528f (patch) | |
tree | 9e32e9aee5c02574e3cd9da3cd79c5d31632208b /spec/factories.rb | |
parent | 8763a12fc51f72c9ccc195945fb191e35684aa23 (diff) |
Add specs for AdminUserController#modify_comment_visibility
Diffstat (limited to 'spec/factories.rb')
-rw-r--r-- | spec/factories.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/factories.rb b/spec/factories.rb index 4ae99be5b..e3990977e 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -176,4 +176,21 @@ FactoryGirl.define do user body "Some text" end + + factory :comment do + user + info_request + + body 'This a wise and helpful annotation.' + comment_type 'request' + + factory :visible_comment do + visible true + end + + factory :hidden_comment do + visible false + end + end + end |