Remove unnecessary call to subject on GeoNodesController spec

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