Commit 014d9259 authored by Valery Sizov's avatar Valery Sizov

[CE upstream] fix rubocop & spec

parent f6f8392b
...@@ -276,7 +276,7 @@ Style/IdenticalConditionalBranches: ...@@ -276,7 +276,7 @@ Style/IdenticalConditionalBranches:
Enabled: false Enabled: false
# Checks the indentation of the first line of the right-hand-side of a # Checks the indentation of the first line of the right-hand-side of a
# multi-line assignment. # multi-line assignment.
Style/IndentAssignment: Style/IndentAssignment:
Enabled: false Enabled: false
...@@ -691,7 +691,7 @@ Style/ZeroLengthPredicate: ...@@ -691,7 +691,7 @@ Style/ZeroLengthPredicate:
# branches, and conditions. # branches, and conditions.
Metrics/AbcSize: Metrics/AbcSize:
Enabled: true Enabled: true
Max: 60 Max: 64
# Avoid excessive block nesting. # Avoid excessive block nesting.
Metrics/BlockNesting: Metrics/BlockNesting:
......
...@@ -435,8 +435,8 @@ describe Project, models: true do ...@@ -435,8 +435,8 @@ describe Project, models: true do
stub_request(:post, project_hook.url) stub_request(:post, project_hook.url)
stub_request(:post, group_hook.url) stub_request(:post, group_hook.url)
expect_any_instance_of(ProjectHook).to receive(:async_execute).and_return(true)
expect_any_instance_of(GroupHook).to receive(:async_execute).and_return(true) expect_any_instance_of(GroupHook).to receive(:async_execute).and_return(true)
expect_any_instance_of(ProjectHook).to receive(:async_execute).and_return(true)
project.execute_hooks({}, :push_hooks) project.execute_hooks({}, :push_hooks)
end end
......
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