openstreetmap-website/test/factories/user_role.rb
Andy Allan c55169659c Add a user_role factory
Naming the association in the model makes the relationship easier
to express in the factory.
2017-02-02 12:35:29 +00:00

6 lines
109 B
Ruby

FactoryGirl.define do
factory :user_role do
user
association :granter, :factory => :user
end
end