Commit a5540b38 authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Modify expectations for update runner feature

parent d38322b8
......@@ -183,15 +183,15 @@
it 'should update runner' do
description = shared_runner.description
active =
tag_list = shared_runner.tag_list
put api("/runners/#{}", admin), description: "#{description}_updated", active: !active,
tag_list: ['ruby2.1', 'pgsql', 'mysql']
expect(response.status).to eq(200)
expect(shared_runner.description).not_to eq(description)
expect( eq(active)
expect(shared_runner.tag_list).not_to eq(tag_list)
expect(shared_runner.description).to eq("#{description}_updated")
expect( eq(!active)
expect(shared_runner.tag_list).to include('ruby2.1', 'pgsql', 'mysql')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment