Commit a5f43b3d authored by Matija Čupić's avatar Matija Čupić

Remove project billing context from controller spec

parent a1e1bbef
...@@ -137,13 +137,6 @@ describe Projects::Clusters::GcpController do ...@@ -137,13 +137,6 @@ describe Projects::Clusters::GcpController do
stub_google_api_validate_token stub_google_api_validate_token
end end
context 'when google project billing is enabled' do
before do
redis_double = double.as_null_object
allow(Gitlab::Redis::SharedState).to receive(:with).and_yield(redis_double)
allow(redis_double).to receive(:get).with(CheckGcpProjectBillingWorker.redis_shared_state_key_for('token')).and_return('true')
end
it 'creates a new cluster' do it 'creates a new cluster' do
expect(ClusterProvisionWorker).to receive(:perform_async) expect(ClusterProvisionWorker).to receive(:perform_async)
expect { go }.to change { Clusters::Cluster.count } expect { go }.to change { Clusters::Cluster.count }
...@@ -153,7 +146,6 @@ describe Projects::Clusters::GcpController do ...@@ -153,7 +146,6 @@ describe Projects::Clusters::GcpController do
expect(project.clusters.first).to be_kubernetes expect(project.clusters.first).to be_kubernetes
end end
end end
end
context 'when access token is expired' do context 'when access token is expired' do
before do before 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