summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-30 15:43:30 +0200
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-31 10:56:41 +0200
commit5c6c184f70719c464690455abc02e777b3ba4b7b (patch)
treeadae6048ada7da5b9b0ee01badc9ded661d18459
parentc0c5f896b79635343d3651b40bcb875413ceedd9 (diff)
downloadgitlab-ce-46010-add-more-validations-for-runners-and-runner-type.tar.gz
Fix spec/models/ci/runner_spec.rb:775 destroy runner with no projects46010-add-more-validations-for-runners-and-runner-type
-rw-r--r--spec/models/ci/runner_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/ci/runner_spec.rb b/spec/models/ci/runner_spec.rb
index f8d590e4776..0f072aa1719 100644
--- a/spec/models/ci/runner_spec.rb
+++ b/spec/models/ci/runner_spec.rb
@@ -773,6 +773,7 @@ describe Ci::Runner do
end
it 'can be destroyed' do
+ subject
expect { subject.destroy }.to change { described_class.count }.by(-1)
end
end