summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-12 15:55:06 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-12 15:55:06 +0200
commitbfebab1c10345a4a36490efaf2297c6f2f97f0d6 (patch)
tree95c1a161da6947829744e21b33be1612295bcd25
parent118bd7178b2be5f8a8fbcfa6af66e9e6d299b658 (diff)
downloadgitlab-ce-bfebab1c10345a4a36490efaf2297c6f2f97f0d6.tar.gz
Fix snippet factory
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--spec/factories.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index 58060131638..50580cd1334 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -5,10 +5,14 @@ FactoryGirl.define do
Faker::Lorem.sentence
end
- sequence :name, aliases: [:file_name] do
+ sequence :name do
Faker::Name.name
end
+ sequence :file_name do
+ Faker::Internet.user_name
+ end
+
sequence(:url) { Faker::Internet.uri('http') }
factory :user, aliases: [:author, :assignee, :owner, :creator] do
@@ -18,7 +22,7 @@ FactoryGirl.define do
password "12345678"
password_confirmation { password }
confirmed_at { Time.now }
- confirmation_token { nil }
+ confirmation_token { nil }
trait :admin do
admin true