diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-02-17 22:20:09 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-02-19 13:18:49 +0100 |
commit | acfe25edc0083b5e51cf8021b862dc1419a4006e (patch) | |
tree | 0b1de326fefabae4358df31cf048ae57db651304 /spec/factories/ci/runners.rb | |
parent | e4d2f9972cef6268166a31c20c062b2bf42d9ed7 (diff) | |
download | gitlab-ce-acfe25edc0083b5e51cf8021b862dc1419a4006e.tar.gz |
Refactorize `ci_runner` factory and `let` definitions in runners API spec
Diffstat (limited to 'spec/factories/ci/runners.rb')
-rw-r--r-- | spec/factories/ci/runners.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/factories/ci/runners.rb b/spec/factories/ci/runners.rb index db759eca9ac..265663e8453 100644 --- a/spec/factories/ci/runners.rb +++ b/spec/factories/ci/runners.rb @@ -25,14 +25,12 @@ FactoryGirl.define do "My runner#{n}" end - platform "darwin" + platform "darwin" + is_shared false + active true - factory :ci_shared_runner do + trait :shared do is_shared true end - - factory :ci_specific_runner do - is_shared false - end end end |