diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-11-28 16:22:29 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-11-28 16:22:29 +0300 |
commit | 8796e7278ecaf5e225b586499ac856957b5fad8b (patch) | |
tree | 00909c676e17497336b6ccd2364047b748c1a14a /spec/finders/clusters_finder_spec.rb | |
parent | 63b08da9cdb264a6c5597e1b47864f43b0336bed (diff) |
Refactor ClustersFinder
Diffstat (limited to 'spec/finders/clusters_finder_spec.rb')
-rw-r--r-- | spec/finders/clusters_finder_spec.rb | 10 |
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 |