link-share/spec/factories/link_factory.rb
2016-01-11 14:22:15 -05:00

6 lines
170 B
Ruby

FactoryGirl.define do
factory :link do
sequence(:title) { |n| "Sequenced Title (#{n})" }
sequence(:url) { |n| "http://www.#{n}example#{n}.com/#{n}" }
end
end