Refactor syntax for spec/models/clusters/applications/jupyter_spec.rb

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2018-05-30 11:40:45 +03:00
parent 08216d2e58
commit 7ae4581c8f
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -14,14 +14,14 @@ describe Clusters::Applications::Jupyter do
let(:cluster) { create(:cluster, :provided_by_gcp) }
let(:jupyter) { create(:clusters_applications_jupyter, cluster: cluster) }
it { expect(jupyter.status_name).to be(:not_installable) }
it { expect(jupyter).to be_not_installable }
end
context 'when ingress is installed and external_ip is assigned' do
let(:ingress) { create(:clusters_applications_ingress, :installed, external_ip: '127.0.0.1') }
let(:jupyter) { create(:clusters_applications_jupyter, cluster: ingress.cluster) }
it { expect(jupyter.status_name).to be(:installable) }
it { expect(jupyter).to be_installable }
end
end