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

[CE upstream] fix rubocop & spec

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