sequences.rb 513 Bytes
Newer Older
1 2 3 4 5
FactoryGirl.define do
  sequence(:username) { |n| "user#{n}" }
  sequence(:name) { |n| "John Doe#{n}" }
  sequence(:email) { |n| "user#{n}@example.org" }
  sequence(:email_alias) { |n| "user.alias#{n}@example.org" }
Rémy Coutable's avatar
Rémy Coutable committed
6 7
  sequence(:title) { |n| "My title #{n}" }
  sequence(:filename) { |n| "filename-#{n}.rb" }
8
  sequence(:url) { |n| "http://example#{n}.org" }
9
  sequence(:label_title) { |n| "label#{n}" }
10
  sequence(:branch) { |n| "my-branch-#{n}" }
11
  sequence(:past_time) { |n| 4.hours.ago + (2 * n).seconds }
12
end