openstreetmap-website/test/factories/changeset_comments.rb
Andy Allan 24cd3af31e Use changeset factory for factory associations
One test needed updating since it assumed the comments were being
created on a particular changeset.
2017-03-22 11:09:52 +00:00

10 lines
193 B
Ruby

FactoryGirl.define do
factory :changeset_comment do
sequence(:body) { |n| "Changeset comment #{n}" }
visible true
changeset
association :author, :factory => :user
end
end