summaryrefslogtreecommitdiff
path: root/spec/factories/ci/runners.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-09-13 00:36:16 +0200
committerTomasz Maczukin <tomasz@maczukin.pl>2016-09-13 17:44:20 +0200
commit5b8613b8e657051a6a9199d417dd300f2fd9a281 (patch)
tree94ce0ef2cd4fe009a2fc91b50cb8be41046dd72f /spec/factories/ci/runners.rb
parentf369e62a16d5f7c529f277c1125ee99c85dfc56d (diff)
downloadgitlab-ce-5b8613b8e657051a6a9199d417dd300f2fd9a281.tar.gz
Add test with inactive error use case for 'POST /ci/api/v1/builds/register.json'
Diffstat (limited to 'spec/factories/ci/runners.rb')
-rw-r--r--spec/factories/ci/runners.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/ci/runners.rb b/spec/factories/ci/runners.rb
index 5b645fab32e..45eaebb2576 100644
--- a/spec/factories/ci/runners.rb
+++ b/spec/factories/ci/runners.rb
@@ -30,5 +30,9 @@ FactoryGirl.define do
trait :shared do
is_shared true
end
+
+ trait :inactive do
+ active false
+ end
end
end