Commit 77aa7197 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'ee-42385-enable-the-rspec-singlelinehook-cop' into 'master'

[EE]  Resolve "Re-enable the `RSpec/SingleLineHook` cop"

See merge request gitlab-org/gitlab-ee!4248
parents d9b66808 d5bb1593
...@@ -342,10 +342,6 @@ RSpec/SharedContext: ...@@ -342,10 +342,6 @@ RSpec/SharedContext:
Exclude: Exclude:
- 'spec/features/admin/admin_groups_spec.rb' - 'spec/features/admin/admin_groups_spec.rb'
# Offense count: 90
RSpec/SingleLineHook:
Enabled: false
# Offense count: 5 # Offense count: 5
RSpec/VoidExpect: RSpec/VoidExpect:
Exclude: Exclude:
......
...@@ -329,7 +329,7 @@ GEM ...@@ -329,7 +329,7 @@ GEM
posix-spawn (~> 0.3) posix-spawn (~> 0.3)
gitlab-license (1.0.0) gitlab-license (1.0.0)
gitlab-markup (1.6.3) gitlab-markup (1.6.3)
gitlab-styles (2.3.0) gitlab-styles (2.3.1)
rubocop (~> 0.51) rubocop (~> 0.51)
rubocop-gitlab-security (~> 0.1.0) rubocop-gitlab-security (~> 0.1.0)
rubocop-rspec (~> 1.19) rubocop-rspec (~> 1.19)
......
...@@ -474,7 +474,9 @@ describe GeoNodeStatus, :geo do ...@@ -474,7 +474,9 @@ describe GeoNodeStatus, :geo do
end end
describe '#storage_shards_match?' do describe '#storage_shards_match?' do
before { stub_primary_node } before do
stub_primary_node
end
set(:status) { create(:geo_node_status) } set(:status) { create(:geo_node_status) }
let(:data) { GeoNodeStatusSerializer.new.represent(status).as_json } let(:data) { GeoNodeStatusSerializer.new.represent(status).as_json }
......
...@@ -9,7 +9,9 @@ describe API::Entities::GeoNodeStatus, :postgresql do ...@@ -9,7 +9,9 @@ describe API::Entities::GeoNodeStatus, :postgresql do
subject { entity.as_json } subject { entity.as_json }
before { stub_primary_node } before do
stub_primary_node
end
describe '#healthy' do describe '#healthy' do
context 'when node is healthy' do context 'when node is healthy' do
...@@ -127,7 +129,9 @@ describe API::Entities::GeoNodeStatus, :postgresql do ...@@ -127,7 +129,9 @@ describe API::Entities::GeoNodeStatus, :postgresql do
end end
context 'secondary Geo node' do context 'secondary Geo node' do
before { stub_secondary_node } before do
stub_secondary_node
end
it { is_expected.to have_key(:storage_shards) } it { is_expected.to have_key(:storage_shards) }
it { is_expected.not_to have_key(:storage_shards_match) } it { is_expected.not_to have_key(:storage_shards_match) }
......
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