Commit 74c9ca6b authored by Rémy Coutable's avatar Rémy Coutable

Fix a test that only pass on retry

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 4404fa9f
......@@ -9,7 +9,7 @@ describe Groups::BillingsController do
describe 'GET index' do
before do
stub_application_setting(check_namespace_plan: true)
allow(Gitlab).to receive(:dev_env_org_or_com?) { true }
allow(Gitlab::CurrentSettings).to receive(:should_check_namespace_plan?) { true }
end
context 'authorized' do
......@@ -48,7 +48,7 @@ describe Groups::BillingsController do
end
it 'renders 404 when it is not gitlab.com' do
allow(Gitlab).to receive(:dev_env_org_or_com?) { false }
expect(Gitlab::CurrentSettings).to receive(:should_check_namespace_plan?).at_least(:once) { false }
group.add_owner(user)
sign_in(user)
......
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