Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-02-17 17:36:14 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2016-02-19 15:18:48 +0300
commita5540b385d91f0c16eaab1137d263c12fe1f2839 (patch)
tree2624896573a360782866b713d9aa9439e0d685e9
parentd38322b8952292951fa008cb3300c73933f64fb4 (diff)
Modify expectations for update runner feature
-rw-r--r--spec/requests/api/runners_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/api/runners_spec.rb b/spec/requests/api/runners_spec.rb
index 6ad62f7d6fc..d63786d4100 100644
--- a/spec/requests/api/runners_spec.rb
+++ b/spec/requests/api/runners_spec.rb
@@ -183,15 +183,15 @@ describe API::API, api: true do
it 'should update runner' do
description = shared_runner.description
active = shared_runner.active
- tag_list = shared_runner.tag_list
+
put api("/runners/#{shared_runner.id}", admin), description: "#{description}_updated", active: !active,
tag_list: ['ruby2.1', 'pgsql', 'mysql']
shared_runner.reload
expect(response.status).to eq(200)
- expect(shared_runner.description).not_to eq(description)
- expect(shared_runner.active).not_to eq(active)
- expect(shared_runner.tag_list).not_to eq(tag_list)
+ expect(shared_runner.description).to eq("#{description}_updated")
+ expect(shared_runner.active).to eq(!active)
+ expect(shared_runner.tag_list).to include('ruby2.1', 'pgsql', 'mysql')
end
end