diff options
Diffstat (limited to 'spec/helpers/environment_helper_spec.rb')
-rw-r--r-- | spec/helpers/environment_helper_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/helpers/environment_helper_spec.rb b/spec/helpers/environment_helper_spec.rb index b9316e46d9d..1383bf34881 100644 --- a/spec/helpers/environment_helper_spec.rb +++ b/spec/helpers/environment_helper_spec.rb @@ -22,6 +22,15 @@ RSpec.describe EnvironmentHelper, feature_category: :environment_management do end end + context 'when deploying from a bridge' do + it 'renders a span tag' do + deploy = build(:deployment, deployable: create(:ci_bridge), status: :success) + html = helper.render_deployment_status(deploy) + + expect(html).to have_css('span.ci-status.ci-success') + end + end + context 'for a blocked deployment' do subject { helper.render_deployment_status(deployment) } |