summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-17 18:36:10 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-03 02:11:51 +0900
commite72c50fcb2f60516284fb66aa322cd0880cbda80 (patch)
treec6ff86f60a720d6f55b807f2897b3649248debd2
parent3735b8aaa1f48ea3803e31e18f1e40d2fd091b26 (diff)
downloadgitlab-ce-e72c50fcb2f60516284fb66aa322cd0880cbda80.tar.gz
Change sort spec description
-rw-r--r--spec/finders/pipelines_finder_spec.rb4
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