diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-30 15:43:30 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-31 10:56:41 +0200 |
commit | 5c6c184f70719c464690455abc02e777b3ba4b7b (patch) | |
tree | adae6048ada7da5b9b0ee01badc9ded661d18459 /spec | |
parent | c0c5f896b79635343d3651b40bcb875413ceedd9 (diff) | |
download | gitlab-ce-5c6c184f70719c464690455abc02e777b3ba4b7b.tar.gz |
Fix spec/models/ci/runner_spec.rb:775 destroy runner with no projects46010-add-more-validations-for-runners-and-runner-type
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/ci/runner_spec.rb | 1 |
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 |