summaryrefslogtreecommitdiff
path: root/spec/finders
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-09 02:20:00 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-03 02:11:51 +0900
commit171229d4b1501780b2a5e7a2eab9c714addcadea (patch)
treee2cc7d490aa198c51e4577b9610c5796221b4699 /spec/finders
parent9324a464ef456dff3670df227c10d5cdec473256 (diff)
downloadgitlab-ce-171229d4b1501780b2a5e7a2eab9c714addcadea.tar.gz
No need 'a'
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/pipelines_finder_spec.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/spec/finders/pipelines_finder_spec.rb b/spec/finders/pipelines_finder_spec.rb
index 8e214a71a32..a2f33b7baa0 100644
--- a/spec/finders/pipelines_finder_spec.rb
+++ b/spec/finders/pipelines_finder_spec.rb
@@ -32,7 +32,7 @@ describe PipelinesFinder do
end
end
- context 'when a scope is passed' do
+ context 'when scope is passed' do
context 'when selecting running' do
let(:params) { { scope: 'running' } }
@@ -74,7 +74,7 @@ describe PipelinesFinder do
end
end
- context 'when a status is passed' do
+ context 'when status is passed' do
context 'when selecting running' do
let(:params) { { status: 'running' } }
@@ -124,8 +124,8 @@ describe PipelinesFinder do
end
end
- context 'when a ref is passed' do
- context 'when a ref exists' do
+ context 'when ref is passed' do
+ context 'when ref exists' do
let(:params) { { ref: 'master' } }
it 'selects all pipelines which belong to the ref' do
@@ -133,7 +133,7 @@ describe PipelinesFinder do
end
end
- context 'when a ref does not exist' do
+ context 'when ref does not exist' do
let(:params) { { ref: 'invalid-ref' } }
it 'selects nothing' do
@@ -142,8 +142,8 @@ describe PipelinesFinder do
end
end
- context 'when a name is passed' do
- context 'when a name exists' do
+ context 'when name is passed' do
+ context 'when name exists' do
let(:params) { { name: user1.name } }
it 'selects all pipelines which belong to the name' do
@@ -151,7 +151,7 @@ describe PipelinesFinder do
end
end
- context 'when a name does not exist' do
+ context 'when name does not exist' do
let(:params) { { name: 'invalid-name' } }
it 'selects nothing' do
@@ -160,8 +160,8 @@ describe PipelinesFinder do
end
end
- context 'when a username is passed' do
- context 'when a username exists' do
+ context 'when username is passed' do
+ context 'when username exists' do
let(:params) { { username: user1.username } }
it 'selects all pipelines which belong to the username' do
@@ -169,7 +169,7 @@ describe PipelinesFinder do
end
end
- context 'when a username does not exist' do
+ context 'when username does not exist' do
let(:params) { { username: 'invalid-username' } }
it 'selects nothing' do
@@ -178,7 +178,7 @@ describe PipelinesFinder do
end
end
- context 'when a yaml_errors is passed' do
+ context 'when yaml_errors is passed' do
context 'when yaml_errors is true' do
let(:params) { { yaml_errors: true } }
@@ -204,7 +204,7 @@ describe PipelinesFinder do
end
end
- context 'when a order_by and sort are passed' do
+ context 'when order_by and sort are passed' do
context 'when order by created_at asc' do
let(:params) { { order_by: 'created_at', sort: 'asc' } }