Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-07-25 11:31:50 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-07-25 11:39:39 +0300
commitfab7dacc2614142dcc7d57a7199ea0db4f05f38e (patch)
treeaba3c041de7547d4d377485bb8b8baed0d2ee2a2 /spec
parentf7abde937dda342ee78618f26ee8f86f46e9072d (diff)
Updates CE backport
Diffstat (limited to 'spec')
-rw-r--r--spec/models/clusters/applications/prometheus_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/models/clusters/applications/prometheus_spec.rb b/spec/models/clusters/applications/prometheus_spec.rb
index 784b60fef8d..e4b61552033 100644
--- a/spec/models/clusters/applications/prometheus_spec.rb
+++ b/spec/models/clusters/applications/prometheus_spec.rb
@@ -41,37 +41,37 @@ describe Clusters::Applications::Prometheus do
it 'returns true when installed' do
application = build(:clusters_applications_prometheus, :installed, cluster: cluster)
- expect(application.ready?).to be true
+ expect(application).to be_ready
end
it 'returns false when not_installable' do
application = build(:clusters_applications_prometheus, :not_installable, cluster: cluster)
- expect(application.ready?).to be false
+ expect(application).not_to be_ready
end
it 'returns false when installable' do
application = build(:clusters_applications_prometheus, :installable, cluster: cluster)
- expect(application.ready?).to be false
+ expect(application).not_to be_ready
end
it 'returns false when scheduled' do
application = build(:clusters_applications_prometheus, :scheduled, cluster: cluster)
- expect(application.ready?).to be false
+ expect(application).not_to be_ready
end
it 'returns false when installing' do
application = build(:clusters_applications_prometheus, :installing, cluster: cluster)
- expect(application.ready?).to be false
+ expect(application).not_to be_ready
end
it 'returns false when errored' do
application = build(:clusters_applications_prometheus, :errored, cluster: cluster)
- expect(application.ready?).to be false
+ expect(application).not_to be_ready
end
end