summaryrefslogtreecommitdiff
path: root/spec/finders
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-17 22:34:38 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-03 02:11:51 +0900
commit7fb3a78a6d23b1fe0b14fab30e1fac4ec8d27d85 (patch)
tree2c1fac89b9bb736c0a2a9844f78f9381cbfbf1e0 /spec/finders
parentc79c389525d8f31dfc9119a1eb6e9a41585facb9 (diff)
downloadgitlab-ce-7fb3a78a6d23b1fe0b14fab30e1fac4ec8d27d85.tar.gz
Fix improper method name and spec description
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/pipelines_finder_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/finders/pipelines_finder_spec.rb b/spec/finders/pipelines_finder_spec.rb
index b5cb7d75c5e..ac64df8aeb8 100644
--- a/spec/finders/pipelines_finder_spec.rb
+++ b/spec/finders/pipelines_finder_spec.rb
@@ -208,7 +208,7 @@ describe PipelinesFinder do
context 'when order_by and sort are valid' do
let(:params) { { order_by: 'user_id', sort: 'asc' } }
- it 'sorts pipelines by default' do
+ it 'sorts pipelines' do
expect(subject).to eq(Ci::Pipeline.order(user_id: :asc))
end
end
@@ -216,7 +216,7 @@ describe PipelinesFinder do
context 'when order_by is invalid' do
let(:params) { { order_by: 'invalid_column', sort: 'asc' } }
- it 'sorts pipelines with default order_by (id:)' do
+ it 'sorts pipelines with id: (default)' do
expect(subject).to eq(Ci::Pipeline.order(id: :asc))
end
end
@@ -224,7 +224,7 @@ describe PipelinesFinder do
context 'when sort is invalid' do
let(:params) { { order_by: 'user_id', sort: 'invalid_sort' } }
- it 'sorts pipelines with default sort (:desc)' do
+ it 'sorts pipelines with :desc (default)' do
expect(subject).to eq(Ci::Pipeline.order(user_id: :desc))
end
end