summaryrefslogtreecommitdiff
path: root/spec/views/shared/gitlab_version/_security_patch_upgrade_alert.html.haml_spec.rb
blob: c94511a0c82e3326f2b52a27b197be74e35ad139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 modal' do
      expect(rendered).to have_selector('#js-security-patch-upgrade-alert-modal')
    end
  end
end