diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-24 19:12:22 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-03 18:54:48 +0200 |
commit | 58fe40fbd38dce5d42f5f36681780579fb3f031b (patch) | |
tree | 8c902c1a5f79c3479ad17a1e02c8c2b731cb10d0 /spec/factories/sequences.rb | |
parent | 169dc4cec1f45cdcc548e3e682e4fd6f4c98926a (diff) | |
download | gitlab-ce-58fe40fbd38dce5d42f5f36681780579fb3f031b.tar.gz |
Don't use FFaker in factories, use sequences instead
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/factories/sequences.rb')
-rw-r--r-- | spec/factories/sequences.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories/sequences.rb b/spec/factories/sequences.rb index 2321455bfee..c0232ba5bf6 100644 --- a/spec/factories/sequences.rb +++ b/spec/factories/sequences.rb @@ -6,7 +6,7 @@ FactoryGirl.define do sequence(:title) { |n| "My title #{n}" } sequence(:filename) { |n| "filename-#{n}.rb" } sequence(:url) { |n| "http://example#{n}.org" } - sequence(:label) { |n| "label#{n}" } + sequence(:label_title) { |n| "label#{n}" } sequence(:branch) { |n| "my-branch-#{n}" } - sequence(:issue_created_at) { |n| 4.hours.ago + (2 * n).seconds } + sequence(:past_time) { |n| 4.hours.ago + (2 * n).seconds } end |