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/models/environment_spec.rb | |
parent | a8825f0c7fb5da6a047813a491e6b8aebc33bb5b (diff) | |
download | gitlab-ce-1664354c65c103bd3ad55ebe32e84635bef22a6d.tar.gz |
Update changes
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r-- | spec/models/environment_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb index 1ac5e0413ee..ffce6847ff3 100644 --- a/spec/models/environment_spec.rb +++ b/spec/models/environment_spec.rb @@ -112,8 +112,8 @@ describe Environment, models: true do end end - describe '#can_run_stop_action?' do - subject { environment.can_run_stop_action? } + describe '#stoppable?' do + subject { environment.stoppable? } context 'when no other actions' do it { is_expected.to be_falsey } @@ -142,10 +142,10 @@ describe Environment, models: true do end end - describe '#run_stop!' do + describe '#stop_with_action!' do let(:user) { create(:user) } - subject { environment.run_stop!(user) } + subject { environment.stop_with_action!(user) } before do expect(environment).to receive(:available?).and_call_original |