diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-08-29 09:56:03 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-03 17:49:10 +0300 |
commit | 1024718e9fddbb0d61d3f64f44303964641fcdd8 (patch) | |
tree | 3eef4777a58c9d3e798827ca39e3a5fa0602088c /spec/requests | |
parent | 3875983205fd3cdbdc93f18b118deaf098d75af1 (diff) |
Refactor access_level to not_protected and ref_protected
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/runners_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/runners_spec.rb b/spec/requests/api/runners_spec.rb index 5a6edad8118..abaa6eb4f6d 100644 --- a/spec/requests/api/runners_spec.rb +++ b/spec/requests/api/runners_spec.rb @@ -192,7 +192,7 @@ describe API::Runners do tag_list: ['ruby2.1', 'pgsql', 'mysql'], run_untagged: 'false', locked: 'true', - access_level: Ci::Runner.access_levels['protected_']) + access_level: Ci::Runner.access_levels['ref_protected']) shared_runner.reload expect(response).to have_http_status(200) @@ -201,7 +201,7 @@ describe API::Runners do expect(shared_runner.tag_list).to include('ruby2.1', 'pgsql', 'mysql') expect(shared_runner.run_untagged?).to be(false) expect(shared_runner.locked?).to be(true) - expect(shared_runner.protected_?).to be_truthy + expect(shared_runner.ref_protected?).to be_truthy expect(shared_runner.ensure_runner_queue_value) .not_to eq(runner_queue_value) end |