summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFilip Krakowski <Filip.Krakowski@Uni-Duesseldorf.de>2017-06-02 21:11:04 +0200
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-06-08 00:34:58 +0900
commitcd0c472711a0283ba82517d31e678380251e6401 (patch)
tree5a2a4ec6838560d642a0b684c9e6b7e06895c01b /spec
parent449bc26de9c9c6dd146cf15b9176d1311f94555f (diff)
downloadgitlab-ce-cd0c472711a0283ba82517d31e678380251e6401.tar.gz
Fix static-analysis offenses (again)
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/ci/gitlab_ci_yaml_processor_spec.rb36
1 files changed, 18 insertions, 18 deletions
diff --git a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
index fef2d992aaa..af102198068 100644
--- a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
+++ b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
@@ -220,12 +220,12 @@ module Ci
end
it "returns builds if only has special keywords specified and source matches" do
- possibilities = [{keyword: 'pushes', source: 'push'},
- {keyword: 'web', source: 'web'},
- {keyword: 'triggers', source: 'trigger'},
- {keyword: 'schedules', source: 'schedule'},
- {keyword: 'api', source: 'api'},
- {keyword: 'external', source: 'external'}]
+ possibilities = [{ keyword: 'pushes', source: 'push' },
+ { keyword: 'web', source: 'web' },
+ { keyword: 'triggers', source: 'trigger' },
+ { keyword: 'schedules', source: 'schedule' },
+ { keyword: 'api', source: 'api' },
+ { keyword: 'external', source: 'external' }]
possibilities.each do |possibility|
config = YAML.dump({
@@ -240,12 +240,12 @@ module Ci
end
it "does not return builds if only has special keywords specified and source doesn't match" do
- possibilities = [{keyword: 'pushes', source: 'web'},
- {keyword: 'web', source: 'push'},
- {keyword: 'triggers', source: 'schedule'},
- {keyword: 'schedules', source: 'external'},
- {keyword: 'api', source: 'trigger'},
- {keyword: 'external', source: 'api'}]
+ possibilities = [{ keyword: 'pushes', source: 'web' },
+ { keyword: 'web', source: 'push' },
+ { keyword: 'triggers', source: 'schedule' },
+ { keyword: 'schedules', source: 'external' },
+ { keyword: 'api', source: 'trigger' },
+ { keyword: 'external', source: 'api' }]
possibilities.each do |possibility|
config = YAML.dump({
@@ -414,12 +414,12 @@ module Ci
end
it "returns builds if except has special keywords specified and source doesn't match" do
- possibilities = [{keyword: 'pushes', source: 'web'},
- {keyword: 'web', source: 'push'},
- {keyword: 'triggers', source: 'schedule'},
- {keyword: 'schedules', source: 'external'},
- {keyword: 'api', source: 'trigger'},
- {keyword: 'external', source: 'api'}]
+ possibilities = [{ keyword: 'pushes', source: 'web' },
+ { keyword: 'web', source: 'push' },
+ { keyword: 'triggers', source: 'schedule' },
+ { keyword: 'schedules', source: 'external' },
+ { keyword: 'api', source: 'trigger' },
+ { keyword: 'external', source: 'api' }]
possibilities.each do |possibility|
config = YAML.dump({