diff options
Diffstat (limited to 'spec/models/clusters/kubernetes_namespace_spec.rb')
-rw-r--r-- | spec/models/clusters/kubernetes_namespace_spec.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/models/clusters/kubernetes_namespace_spec.rb b/spec/models/clusters/kubernetes_namespace_spec.rb index e70cd15baca..40d381e4dd6 100644 --- a/spec/models/clusters/kubernetes_namespace_spec.rb +++ b/spec/models/clusters/kubernetes_namespace_spec.rb @@ -69,10 +69,12 @@ RSpec.describe Clusters::KubernetesNamespace, type: :model do context 'when cluster is using the namespace' do before do - create(:cluster_kubernetes_namespace, - cluster: kubernetes_namespace.cluster, - environment: kubernetes_namespace.environment, - namespace: 'my-namespace') + create( + :cluster_kubernetes_namespace, + cluster: kubernetes_namespace.cluster, + environment: kubernetes_namespace.environment, + namespace: 'my-namespace' + ) end it { is_expected.not_to be_valid } |