mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-24 12:06:11 +10:00
Speed up tests
This commit is contained in:
+2
-4
@@ -17,16 +17,14 @@ FactoryGirl.define do
|
||||
sequence(:username) { |n| "#{Faker::Internet.user_name}#{n}" }
|
||||
password "123456"
|
||||
password_confirmation { password }
|
||||
confirmed_at { Time.now }
|
||||
confirmation_token { nil }
|
||||
|
||||
trait :admin do
|
||||
admin true
|
||||
end
|
||||
|
||||
factory :admin, traits: [:admin]
|
||||
|
||||
after :create do |u|
|
||||
u.confirm!
|
||||
end
|
||||
end
|
||||
|
||||
factory :project do
|
||||
|
||||
@@ -86,9 +86,8 @@ module TestEnv
|
||||
)
|
||||
|
||||
ActivityObserver.any_instance.stub(
|
||||
current_user: double("current_user", id: 1)
|
||||
current_user: double("current_user", id: 1)
|
||||
)
|
||||
|
||||
end
|
||||
|
||||
def clear_repo_dir(namespace, name)
|
||||
|
||||
Reference in New Issue
Block a user