openstreetmap-website/test/factories/changeset_comments.rb
Andy Allan a91e50d308 Replace changeset_comments fixtures with a factory.
There's little point in testing ChangesetComment.count so I've removed that
test.
2016-10-12 15:44:27 +01:00

12 lines
240 B
Ruby

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