diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-20 16:52:05 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-20 16:52:05 +0800 |
commit | 4efc1c4a68538126bc4cfad6d9b60710bee36f14 (patch) | |
tree | b0800ee7ce399e064e83f422ab02c21ef286caa9 /spec | |
parent | 60ef0dd20c91fd8d8f04ec139edaa07dbab86d1b (diff) | |
download | gitlab-ce-4efc1c4a68538126bc4cfad6d9b60710bee36f14.tar.gz |
Rename according to:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093#note_12563922
For clarification and consistency
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/ci/runner_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/models/ci/runner_spec.rb b/spec/models/ci/runner_spec.rb index c7248ef1384..ef65eb99328 100644 --- a/spec/models/ci/runner_spec.rb +++ b/spec/models/ci/runner_spec.rb @@ -263,7 +263,7 @@ describe Ci::Runner, models: true do end end - describe '.available_for' do + describe '.assignable_for' do let(:runner) { create(:ci_runner) } let(:project) { create(:project) } let(:another_project) { create(:project) } @@ -278,13 +278,13 @@ describe Ci::Runner, models: true do end context 'does not give owned runner' do - subject { Ci::Runner.available_for(project) } + subject { Ci::Runner.assignable_for(project) } it { is_expected.to be_empty } end context 'does not give shared runner' do - subject { Ci::Runner.available_for(another_project) } + subject { Ci::Runner.assignable_for(another_project) } it { is_expected.to be_empty } end @@ -292,13 +292,13 @@ describe Ci::Runner, models: true do context 'with unlocked runner' do context 'does not give owned runner' do - subject { Ci::Runner.available_for(project) } + subject { Ci::Runner.assignable_for(project) } it { is_expected.to be_empty } end context 'does give a specific runner' do - subject { Ci::Runner.available_for(another_project) } + subject { Ci::Runner.assignable_for(another_project) } it { is_expected.to contain_exactly(runner) } end @@ -310,13 +310,13 @@ describe Ci::Runner, models: true do end context 'does not give owned runner' do - subject { Ci::Runner.available_for(project) } + subject { Ci::Runner.assignable_for(project) } it { is_expected.to be_empty } end context 'does not give a locked runner' do - subject { Ci::Runner.available_for(another_project) } + subject { Ci::Runner.assignable_for(another_project) } it { is_expected.to be_empty } end |