Remove unnecessary call to subject on GeoNodesController spec

parent ea48ba9f
......@@ -117,14 +117,12 @@ describe Admin::GeoNodesController do
end
describe '#toggle' do
subject { post :toggle, id: geo_node }
context 'without add-on license' do
let(:geo_node) { create(:geo_node) }
before do
allow(Gitlab::Geo).to receive(:license_allows?).and_return(false)
subject
post :toggle, id: geo_node
end
it_behaves_like 'unlicensed geo action'
......@@ -133,7 +131,7 @@ describe Admin::GeoNodesController do
context 'with add-on license' do
before do
allow(Gitlab::Geo).to receive(:license_allows?).and_return(true)
subject
post :toggle, id: geo_node
end
context 'with a primary node' do
......
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