summaryrefslogtreecommitdiff
path: root/spec/services/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-02-06 16:50:03 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2017-02-06 16:50:03 +0100
commit1664354c65c103bd3ad55ebe32e84635bef22a6d (patch)
treeecbb6ceeb7e6c80f70d76950036c638c60522a05 /spec/services/ci
parenta8825f0c7fb5da6a047813a491e6b8aebc33bb5b (diff)
downloadgitlab-ce-1664354c65c103bd3ad55ebe32e84635bef22a6d.tar.gz
Update changes
Diffstat (limited to 'spec/services/ci')
-rw-r--r--spec/services/ci/stop_environments_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/ci/stop_environments_service_spec.rb b/spec/services/ci/stop_environments_service_spec.rb
index 6f7d1a5d28d..560f83d94f7 100644
--- a/spec/services/ci/stop_environments_service_spec.rb
+++ b/spec/services/ci/stop_environments_service_spec.rb
@@ -42,10 +42,10 @@ describe Ci::StopEnvironmentsService, services: true do
end
end
- context 'when environment is not stoppable' do
+ context 'when environment is not stopped' do
before do
allow_any_instance_of(Environment)
- .to receive(:stoppable?).and_return(false)
+ .to receive(:state).and_return(:stopped)
end
it 'does not stop environment' do