diff options
Diffstat (limited to 'spec/lib/gitlab')
-rw-r--r-- | spec/lib/gitlab/chat_commands/deploy_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/lib/gitlab/chat_commands/deploy_spec.rb b/spec/lib/gitlab/chat_commands/deploy_spec.rb index bdbaa41dd14..26741367e63 100644 --- a/spec/lib/gitlab/chat_commands/deploy_spec.rb +++ b/spec/lib/gitlab/chat_commands/deploy_spec.rb @@ -52,12 +52,13 @@ describe Gitlab::ChatCommands::Deploy, service: true do context 'when teardown action exists' do let!(:teardown) do - create(:ci_build, :manual, :teardown_environment, project: project, pipeline: build.pipeline, + create(:ci_build, :manual, :teardown_environment, + project: project, pipeline: build.pipeline, name: 'teardown', environment: 'production') end it 'returns error' do - expect(subject).to eq(action) + expect(subject).to eq(manual1) end end end |