Commit d5bb1593 authored by Rémy Coutable's avatar Rémy Coutable

Fix EE offenses to the RSpec/SingleLineHook cop

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 6dadc07c
......@@ -474,7 +474,9 @@ describe GeoNodeStatus, :geo do
end
describe '#storage_shards_match?' do
before { stub_primary_node }
before do
stub_primary_node
end
set(:status) { create(:geo_node_status) }
let(:data) { GeoNodeStatusSerializer.new.represent(status).as_json }
......
......@@ -9,7 +9,9 @@ describe API::Entities::GeoNodeStatus, :postgresql do
subject { entity.as_json }
before { stub_primary_node }
before do
stub_primary_node
end
describe '#healthy' do
context 'when node is healthy' do
......@@ -127,7 +129,9 @@ describe API::Entities::GeoNodeStatus, :postgresql do
end
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.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