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:
Diffstat (limited to 'spec/models/deployment_spec.rb')
-rw-r--r--spec/models/deployment_spec.rb24
1 files changed, 2 insertions, 22 deletions
diff --git a/spec/models/deployment_spec.rb b/spec/models/deployment_spec.rb
index 28040dd0365..a58d32dfe5d 100644
--- a/spec/models/deployment_spec.rb
+++ b/spec/models/deployment_spec.rb
@@ -27,41 +27,21 @@ RSpec.describe Deployment do
describe '#manual_actions' do
let(:deployment) { create(:deployment) }
- it 'delegates to environment_manual_actions when deployment_environment_manual_actions ff is enabled' do
- stub_feature_flags(deployment_environment_manual_actions: true)
-
+ it 'delegates to environment_manual_actions' do
expect(deployment.deployable).to receive(:environment_manual_actions).and_call_original
deployment.manual_actions
end
-
- it 'delegates to other_manual_actions when deployment_environment_manual_actions ff is disabled' do
- stub_feature_flags(deployment_environment_manual_actions: false)
-
- expect(deployment.deployable).to receive(:other_manual_actions).and_call_original
-
- deployment.manual_actions
- end
end
describe '#scheduled_actions' do
let(:deployment) { create(:deployment) }
- it 'delegates to environment_scheduled_actions when deployment_environment_manual_actions ff is enabled' do
- stub_feature_flags(deployment_environment_manual_actions: true)
-
+ it 'delegates to environment_scheduled_actions' do
expect(deployment.deployable).to receive(:environment_scheduled_actions).and_call_original
deployment.scheduled_actions
end
-
- it 'delegates to other_scheduled_actions when deployment_environment_manual_actions ff is disabled' do
- stub_feature_flags(deployment_environment_manual_actions: false)
-
- expect(deployment.deployable).to receive(:other_scheduled_actions).and_call_original
-
- deployment.scheduled_actions
- end
end
describe 'modules' do