diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-02-06 16:50:03 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-02-06 16:50:03 +0100 |
commit | 1664354c65c103bd3ad55ebe32e84635bef22a6d (patch) | |
tree | ecbb6ceeb7e6c80f70d76950036c638c60522a05 /spec/services/ci | |
parent | a8825f0c7fb5da6a047813a491e6b8aebc33bb5b (diff) | |
download | gitlab-ce-1664354c65c103bd3ad55ebe32e84635bef22a6d.tar.gz |
Update changes
Diffstat (limited to 'spec/services/ci')
-rw-r--r-- | spec/services/ci/stop_environments_service_spec.rb | 4 |
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 |