Commit cd0c4727 authored by Filip Krakowski's avatar Filip Krakowski Committed by Shinya Maeda

Fix static-analysis offenses (again)

parent 449bc26d
...@@ -220,12 +220,12 @@ module Ci ...@@ -220,12 +220,12 @@ module Ci
end end
it "returns builds if only has special keywords specified and source matches" do it "returns builds if only has special keywords specified and source matches" do
possibilities = [{keyword: 'pushes', source: 'push'}, possibilities = [{ keyword: 'pushes', source: 'push' },
{keyword: 'web', source: 'web'}, { keyword: 'web', source: 'web' },
{keyword: 'triggers', source: 'trigger'}, { keyword: 'triggers', source: 'trigger' },
{keyword: 'schedules', source: 'schedule'}, { keyword: 'schedules', source: 'schedule' },
{keyword: 'api', source: 'api'}, { keyword: 'api', source: 'api' },
{keyword: 'external', source: 'external'}] { keyword: 'external', source: 'external' }]
possibilities.each do |possibility| possibilities.each do |possibility|
config = YAML.dump({ config = YAML.dump({
...@@ -240,12 +240,12 @@ module Ci ...@@ -240,12 +240,12 @@ module Ci
end end
it "does not return builds if only has special keywords specified and source doesn't match" do it "does not return builds if only has special keywords specified and source doesn't match" do
possibilities = [{keyword: 'pushes', source: 'web'}, possibilities = [{ keyword: 'pushes', source: 'web' },
{keyword: 'web', source: 'push'}, { keyword: 'web', source: 'push' },
{keyword: 'triggers', source: 'schedule'}, { keyword: 'triggers', source: 'schedule' },
{keyword: 'schedules', source: 'external'}, { keyword: 'schedules', source: 'external' },
{keyword: 'api', source: 'trigger'}, { keyword: 'api', source: 'trigger' },
{keyword: 'external', source: 'api'}] { keyword: 'external', source: 'api' }]
possibilities.each do |possibility| possibilities.each do |possibility|
config = YAML.dump({ config = YAML.dump({
...@@ -414,12 +414,12 @@ module Ci ...@@ -414,12 +414,12 @@ module Ci
end end
it "returns builds if except has special keywords specified and source doesn't match" do it "returns builds if except has special keywords specified and source doesn't match" do
possibilities = [{keyword: 'pushes', source: 'web'}, possibilities = [{ keyword: 'pushes', source: 'web' },
{keyword: 'web', source: 'push'}, { keyword: 'web', source: 'push' },
{keyword: 'triggers', source: 'schedule'}, { keyword: 'triggers', source: 'schedule' },
{keyword: 'schedules', source: 'external'}, { keyword: 'schedules', source: 'external' },
{keyword: 'api', source: 'trigger'}, { keyword: 'api', source: 'trigger' },
{keyword: 'external', source: 'api'}] { keyword: 'external', source: 'api' }]
possibilities.each do |possibility| possibilities.each do |possibility|
config = YAML.dump({ config = YAML.dump({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment