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:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-10 15:42:55 +0300
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-16 11:52:28 +0300
commitc3f9d80a6e0950361e056ded4107015d3923f56d (patch)
tree91155d2ef99e8fd9feca798b1a6dd1d3f5519d9d /spec/models
parent18821b157dbf3a73637ab741e8154b5133ce0e72 (diff)
Rename User#ci_authorized_runners -> ci_owned_runners
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/user_spec.rb14
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