1 2 3 4 5 6 7 8 9
FactoryGirl.define do factory :project_hook do url { FFaker::Internet.uri('http') } trait :token do token { SecureRandom.hex(10) } end end end