Commit fcafdac1 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'fix-failures-on-billings-controller-tests' into 'master'

Adjust inconsistent failures on Billings controller tests

See merge request gitlab-org/gitlab-ee!2909
parents c472e8f6 fb875d56
......@@ -7,7 +7,7 @@ describe Groups::BillingsController do
describe 'GET index' do
before do
stub_application_setting(check_namespace_plan: true)
allow(Gitlab).to receive(:com?) { true }
allow(Gitlab).to receive(:dev_env_or_com?) { true }
end
context 'authorized' do
......@@ -46,7 +46,7 @@ describe Groups::BillingsController do
end
it 'renders 404 when it is not gitlab.com' do
allow(Gitlab).to receive(:com?) { false }
allow(Gitlab).to receive(:dev_env_or_com?) { 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