diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-10 14:42:55 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-16 10:52:28 +0200 |
commit | c3f9d80a6e0950361e056ded4107015d3923f56d (patch) | |
tree | 91155d2ef99e8fd9feca798b1a6dd1d3f5519d9d /spec/models/user_spec.rb | |
parent | 18821b157dbf3a73637ab741e8154b5133ce0e72 (diff) | |
download | gitlab-ce-c3f9d80a6e0950361e056ded4107015d3923f56d.tar.gz |
Rename User#ci_authorized_runners -> ci_owned_runners
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r-- | spec/models/user_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 52d25d20442..de15e0e62aa 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -1786,7 +1786,7 @@ describe User do end end - describe '#ci_authorized_runners' do + describe '#ci_owned_runners' do let(:user) { create(:user) } let(:runner_1) { create(:ci_runner) } let(:runner_2) { create(:ci_runner) } @@ -1796,7 +1796,7 @@ describe User do let!(:group) { create(:group) } it 'does not load' do - expect(user.ci_authorized_runners).to be_empty + expect(user.ci_owned_runners).to be_empty end end @@ -1805,7 +1805,7 @@ describe User do let!(:project) { create(:project, namespace: namespace, runners: [runner_1]) } it 'loads' do - expect(user.ci_authorized_runners).to contain_exactly(runner_1) + expect(user.ci_owned_runners).to contain_exactly(runner_1) end end @@ -1818,7 +1818,7 @@ describe User do end it 'loads' do - expect(user.ci_authorized_runners).to contain_exactly(runner_2) + expect(user.ci_owned_runners).to contain_exactly(runner_2) end end @@ -1833,7 +1833,7 @@ describe User do end it 'loads' do - expect(user.ci_authorized_runners).to contain_exactly(runner_1, runner_2) + expect(user.ci_owned_runners).to contain_exactly(runner_1, runner_2) end end @@ -1844,7 +1844,7 @@ describe User do end it 'loads' do - expect(user.ci_authorized_runners).to contain_exactly(runner_1) + expect(user.ci_owned_runners).to contain_exactly(runner_1) end end @@ -1854,7 +1854,7 @@ describe User do end it 'does not load' do - expect(user.ci_authorized_runners).to be_empty + expect(user.ci_owned_runners).to be_empty end end end |