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:
parent
c2e12ed77d
commit
a91e50d308
7 changed files with 32 additions and 48 deletions
12
test/factories/changeset_comments.rb
Normal file
12
test/factories/changeset_comments.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue