diff options
Diffstat (limited to 'spec/helpers/user_callouts_helper_spec.rb')
-rw-r--r-- | spec/helpers/user_callouts_helper_spec.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/helpers/user_callouts_helper_spec.rb b/spec/helpers/user_callouts_helper_spec.rb index f68da45bb9a..90333cb0ad5 100644 --- a/spec/helpers/user_callouts_helper_spec.rb +++ b/spec/helpers/user_callouts_helper_spec.rb @@ -97,7 +97,17 @@ RSpec.describe UserCalloutsHelper do allow(helper).to receive(:user_dismissed?).with(described_class::CUSTOMIZE_HOMEPAGE) { false } end - it { is_expected.to be true } + context 'when user is on the default dashboard' do + it { is_expected.to be true } + end + + context 'when user is not on the default dashboard' do + before do + user.dashboard = 'stars' + end + + it { is_expected.to be false } + end end context 'when user dismissed' do |