diff options
author | Nick Thomas <nick@gitlab.com> | 2019-01-07 15:59:14 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-01-07 15:59:14 +0300 |
commit | 75e6561684415b2fffb47a6293ba787c379b84b7 (patch) | |
tree | b8929f2ded8249351a8b64bd8ac484fa71620a38 /spec/helpers | |
parent | ada8ccdb579bb791a67f6d2dd865a91137e702c8 (diff) | |
parent | 0b36422f98430ad5b18692ef3e71a73debaa63dc (diff) |
Merge branch 'mk/geo-deprecate-legacy-storage-ce' into 'master'
Backport persistent user callout flash message to CE
See merge request gitlab-org/gitlab-ce!24166
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/user_callouts_helper_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/helpers/user_callouts_helper_spec.rb b/spec/helpers/user_callouts_helper_spec.rb index 27455705d23..8fa479a4474 100644 --- a/spec/helpers/user_callouts_helper_spec.rb +++ b/spec/helpers/user_callouts_helper_spec.rb @@ -44,4 +44,13 @@ describe UserCalloutsHelper do it { is_expected.to be false } end end + + describe '.render_flash_user_callout' do + it 'renders the flash_user_callout partial' do + expect(helper).to receive(:render) + .with(/flash_user_callout/, flash_type: :warning, message: 'foo', feature_name: 'bar') + + helper.render_flash_user_callout(:warning, 'foo', 'bar') + end + end end |