diff options
Diffstat (limited to 'spec/views/shared/gitlab_version/_security_patch_upgrade_alert.html.haml_spec.rb')
-rw-r--r-- | spec/views/shared/gitlab_version/_security_patch_upgrade_alert.html.haml_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/views/shared/gitlab_version/_security_patch_upgrade_alert.html.haml_spec.rb b/spec/views/shared/gitlab_version/_security_patch_upgrade_alert.html.haml_spec.rb new file mode 100644 index 00000000000..942e27f2559 --- /dev/null +++ b/spec/views/shared/gitlab_version/_security_patch_upgrade_alert.html.haml_spec.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe 'shared/gitlab_version/_security_patch_upgrade_alert' do + describe 'when show_security_patch_upgrade_alert? is true' do + before do + allow(view).to receive(:show_security_patch_upgrade_alert?).and_return(true) + render + end + + it 'renders the security patch upgrade alert' do + expect(rendered).to have_selector('#js-security-patch-upgrade-alert') + end + end +end |