summaryrefslogtreecommitdiff
path: root/spec/requests/ci/api/runners_spec.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-10-19 15:25:37 +0300
committerValery Sizov <valery@gitlab.com>2016-11-01 14:46:59 +0200
commita6ba358a8fe5a965a46ca07c8c0382348b2b8d8c (patch)
treea1ac8c2fe33e9a618a347e890ed9ab6a0cf4bbba /spec/requests/ci/api/runners_spec.rb
parent957308af84ca8312ea362c7272a4008dac808086 (diff)
downloadgitlab-ce-spec_optimization.tar.gz
Make specs a bit fasterspec_optimization
Diffstat (limited to 'spec/requests/ci/api/runners_spec.rb')
-rw-r--r--spec/requests/ci/api/runners_spec.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/requests/ci/api/runners_spec.rb b/spec/requests/ci/api/runners_spec.rb
index 43596f07cb5..d6c26fd8a94 100644
--- a/spec/requests/ci/api/runners_spec.rb
+++ b/spec/requests/ci/api/runners_spec.rb
@@ -109,10 +109,12 @@ describe Ci::API::API do
end
describe "DELETE /runners/delete" do
- let!(:runner) { FactoryGirl.create(:ci_runner) }
- before { delete ci_api("/runners/delete"), token: runner.token }
+ it 'returns 200' do
+ runner = FactoryGirl.create(:ci_runner)
+ delete ci_api("/runners/delete"), token: runner.token
- it { expect(response).to have_http_status 200 }
- it { expect(Ci::Runner.count).to eq(0) }
+ expect(response).to have_http_status 200
+ expect(Ci::Runner.count).to eq(0)
+ end
end
end