diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-17 18:36:10 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-03 02:11:51 +0900 |
commit | e72c50fcb2f60516284fb66aa322cd0880cbda80 (patch) | |
tree | c6ff86f60a720d6f55b807f2897b3649248debd2 | |
parent | 3735b8aaa1f48ea3803e31e18f1e40d2fd091b26 (diff) | |
download | gitlab-ce-e72c50fcb2f60516284fb66aa322cd0880cbda80.tar.gz |
Change sort spec description
-rw-r--r-- | spec/finders/pipelines_finder_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/finders/pipelines_finder_spec.rb b/spec/finders/pipelines_finder_spec.rb index 02c91cbf465..a218f315f79 100644 --- a/spec/finders/pipelines_finder_spec.rb +++ b/spec/finders/pipelines_finder_spec.rb @@ -216,7 +216,7 @@ describe PipelinesFinder do context 'when order_by is invalid' do let(:params) { { order_by: 'invalid_column', sort: 'desc' } } - it 'sorts pipelines, but order_by is default' do + it 'sorts pipelines with default order_by (id:)' do expect(subject).to eq(Ci::Pipeline.order(id: :desc)) end end @@ -224,7 +224,7 @@ describe PipelinesFinder do context 'when sort is invalid' do let(:params) { { order_by: 'created_at', sort: 'invalid_sort' } } - it 'sorts pipelines, but sort is default' do + it 'sorts pipelines with default sort (:desc)' do expect(subject).to eq(Ci::Pipeline.order(created_at: :desc)) end end |