diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-03-25 11:15:24 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-03-25 11:15:24 +0000 |
commit | 7a108776e4f45b10ef5956326fdd9c66514d1ddd (patch) | |
tree | 3bad8adc1347e16c87827bfa43aa9f81e147da6e /spec/factories.rb | |
parent | 2f5085e25a9fd66d839463835a63767003708f62 (diff) | |
parent | eff755504d45bfeff415786dcd0dbbb4c47e8dd0 (diff) |
Merge branch 'ab_annotations_1' into rails-3-develop
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 |