From 5b8613b8e657051a6a9199d417dd300f2fd9a281 Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Tue, 13 Sep 2016 00:36:16 +0200 Subject: Add test with inactive error use case for 'POST /ci/api/v1/builds/register.json' --- spec/factories/ci/runners.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/factories/ci') 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 -- cgit v1.2.3