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
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-02-06 18:50:03 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-02-06 18:50:03 +0300
commit1664354c65c103bd3ad55ebe32e84635bef22a6d (patch)
treeecbb6ceeb7e6c80f70d76950036c638c60522a05 /spec/models/environment_spec.rb
parenta8825f0c7fb5da6a047813a491e6b8aebc33bb5b (diff)
Update changes
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r--spec/models/environment_spec.rb8
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