link-share/spec/factories/link_factory.rb

7 lines
170 B
Ruby
Raw Normal View History

2015-07-21 10:33:31 -04:00
FactoryGirl.define do
factory :link do
sequence(:title) { |n| "Sequenced Title (#{n})" }
sequence(:url) { |n| "http://www.#{n}example#{n}.com/#{n}" }
end
end