diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-01 00:09:47 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-01 00:09:47 +0300 |
commit | 3aeda4e6146bea1920c3283e98b01ca4fcf796a8 (patch) | |
tree | b44e6298a749bd8a02283bc5867ab4a3269b62c3 /spec/serializers/cluster_entity_spec.rb | |
parent | adafb996ef88da50b30c737cdb8caee8307ec6d6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/cluster_entity_spec.rb')
-rw-r--r-- | spec/serializers/cluster_entity_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/serializers/cluster_entity_spec.rb b/spec/serializers/cluster_entity_spec.rb index e3826a7221d..16247eef655 100644 --- a/spec/serializers/cluster_entity_spec.rb +++ b/spec/serializers/cluster_entity_spec.rb @@ -7,7 +7,7 @@ describe ClusterEntity do subject { described_class.new(cluster).as_json } context 'when provider type is gcp' do - let(:cluster) { create(:cluster, provider_type: :gcp, provider_gcp: provider) } + let(:cluster) { create(:cluster, :instance, provider_type: :gcp, provider_gcp: provider) } context 'when status is creating' do let(:provider) { create(:cluster_provider_gcp, :creating) } @@ -29,7 +29,7 @@ describe ClusterEntity do end context 'when provider type is user' do - let(:cluster) { create(:cluster, provider_type: :user) } + let(:cluster) { create(:cluster, :instance, provider_type: :user) } it 'has corresponded data' do expect(subject[:status]).to eq(:created) @@ -38,7 +38,7 @@ describe ClusterEntity do end context 'when no application has been installed' do - let(:cluster) { create(:cluster) } + let(:cluster) { create(:cluster, :instance) } subject { described_class.new(cluster).as_json[:applications]} |