diff options
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 |