Replace changeset_comments fixtures with a factory.

There's little point in testing ChangesetComment.count so I've removed that
test.
This commit is contained in:
Andy Allan 2016-10-12 15:43:54 +01:00
parent c2e12ed77d
commit a91e50d308
7 changed files with 32 additions and 48 deletions

View file

@ -0,0 +1,12 @@
FactoryGirl.define do
factory :changeset_comment do
sequence(:body) { |n| "Changeset comment #{n}" }
visible true
# FIXME: needs changeset factory
changeset_id 3
# FIXME: needs user factory
author_id 1
end
end