diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-15 00:01:18 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-03 02:11:51 +0900 |
commit | 2894f293a28f06d22c392a6bc2bf19403b496fe0 (patch) | |
tree | ad1fce8614ddb4daa7b64e1d793c9070f590002e /spec/finders | |
parent | d1ca5f46d4268ca3bba7801e581395e038c97129 (diff) | |
download | gitlab-ce-2894f293a28f06d22c392a6bc2bf19403b496fe0.tar.gz |
Use eq instead of match_array for comparison of array
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/pipelines_finder_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/finders/pipelines_finder_spec.rb b/spec/finders/pipelines_finder_spec.rb index a2f33b7baa0..76068f21976 100644 --- a/spec/finders/pipelines_finder_spec.rb +++ b/spec/finders/pipelines_finder_spec.rb @@ -28,7 +28,7 @@ describe PipelinesFinder do end it 'orders in descending order on ID' do - expect(subject).to match_array(Ci::Pipeline.order(id: :desc)) + expect(subject).to eq(Ci::Pipeline.order(id: :desc)) end end @@ -209,7 +209,7 @@ describe PipelinesFinder do let(:params) { { order_by: 'created_at', sort: 'asc' } } it 'sorts by created_at asc' do - expect(subject).to match_array(Ci::Pipeline.order(created_at: :asc)) + expect(subject).to eq(Ci::Pipeline.order(created_at: :asc)) end end @@ -217,7 +217,7 @@ describe PipelinesFinder do let(:params) { { order_by: 'created_at', sort: 'desc' } } it 'sorts by created_at desc' do - expect(subject).to match_array(Ci::Pipeline.order(created_at: :desc)) + expect(subject).to eq(Ci::Pipeline.order(created_at: :desc)) end end @@ -225,7 +225,7 @@ describe PipelinesFinder do let(:params) { { order_by: 'invalid_column', sort: 'desc' } } it 'sorts by default' do - expect(subject).to match_array(Ci::Pipeline.order(id: :desc)) + expect(subject).to eq(Ci::Pipeline.order(id: :desc)) end end @@ -233,7 +233,7 @@ describe PipelinesFinder do let(:params) { { order_by: 'created_at', sort: 'invalid_sort' } } it 'sorts by default' do - expect(subject).to match_array(Ci::Pipeline.order(id: :desc)) + expect(subject).to eq(Ci::Pipeline.order(id: :desc)) end end end |