diff options
author | Michael Kozono <mkozono@gmail.com> | 2019-01-04 15:14:15 -0800 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2019-01-04 15:14:15 -0800 |
commit | 0b36422f98430ad5b18692ef3e71a73debaa63dc (patch) | |
tree | 4c83680405bf4ef3cb31bf761c1884c7933106ed /spec | |
parent | 303f049358645312c6f77d08750e489475494201 (diff) | |
download | gitlab-ce-0b36422f98430ad5b18692ef3e71a73debaa63dc.tar.gz |
Port of mk/geo-deprecate-legacy-storage to CEmk/geo-deprecate-legacy-storage-ce
Diffstat (limited to 'spec')
-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 |