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:
authorMatija Čupić <matteeyah@gmail.com>2017-11-28 16:22:29 +0300
committerMatija Čupić <matteeyah@gmail.com>2017-11-28 16:22:29 +0300
commit8796e7278ecaf5e225b586499ac856957b5fad8b (patch)
tree00909c676e17497336b6ccd2364047b748c1a14a /spec/finders
parent63b08da9cdb264a6c5597e1b47864f43b0336bed (diff)
Refactor ClustersFinder
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/clusters_finder_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/finders/clusters_finder_spec.rb b/spec/finders/clusters_finder_spec.rb
index 29fb3846d03..3e7bbbe39c4 100644
--- a/spec/finders/clusters_finder_spec.rb
+++ b/spec/finders/clusters_finder_spec.rb
@@ -15,19 +15,19 @@ describe ClustersFinder do
context 'when scope is all' do
let(:scope) { :all }
- it { is_expected.to eq(project.clusters.to_a) }
+ it { is_expected.to eq(project.clusters) }
end
context 'when scope is enabled' do
- let(:scope) { :enabled }
+ let(:scope) { :active }
- it { is_expected.to eq(project.clusters.enabled.to_a) }
+ it { is_expected.to eq(project.clusters.enabled) }
end
context 'when scope is disabled' do
- let(:scope) { :disabled }
+ let(:scope) { :inactive }
- it { is_expected.to eq(project.clusters.disabled.to_a) }
+ it { is_expected.to eq(project.clusters.disabled) }
end
end
end