summaryrefslogtreecommitdiff
path: root/spec/helpers/user_callouts_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/user_callouts_helper_spec.rb')
-rw-r--r--spec/helpers/user_callouts_helper_spec.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/helpers/user_callouts_helper_spec.rb b/spec/helpers/user_callouts_helper_spec.rb
index 8fa479a4474..c85f3622464 100644
--- a/spec/helpers/user_callouts_helper_spec.rb
+++ b/spec/helpers/user_callouts_helper_spec.rb
@@ -45,6 +45,26 @@ describe UserCalloutsHelper do
end
end
+ describe '.show_privacy_policy_update_64341?' do
+ subject { helper.show_privacy_policy_update_64341? }
+
+ context 'when user has not dismissed' do
+ before do
+ allow(helper).to receive(:user_dismissed?).and_return(false)
+ end
+
+ it { is_expected.to be true }
+ end
+
+ context 'when user dismissed' do
+ before do
+ allow(helper).to receive(:user_dismissed?).and_return(true)
+ end
+
+ 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)