From e8c6affe451b885c03241219a380dce9cb694c5c Mon Sep 17 00:00:00 2001 From: Jeremy Walker Date: Tue, 3 Dec 2024 20:54:12 +0900 Subject: [PATCH] Fix issue (#7179) --- app/helpers/react_components/modals/beg_modal.rb | 2 +- test/system/components/beg_modal_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/react_components/modals/beg_modal.rb b/app/helpers/react_components/modals/beg_modal.rb index 6eca719e4d..89d33acf77 100644 --- a/app/helpers/react_components/modals/beg_modal.rb +++ b/app/helpers/react_components/modals/beg_modal.rb @@ -38,7 +38,7 @@ def recently_seen_seniority_modal? def show_modal? return false if showing_modal? return false if recently_seen_seniority_modal? - return false if current_user.current_subscription + return false if current_user.current_subscription? return false if current_user.donated_in_last_35_days? return false unless current_user.solutions.count >= 5 diff --git a/test/system/components/beg_modal_test.rb b/test/system/components/beg_modal_test.rb index 012bbbdd7e..12624fe727 100644 --- a/test/system/components/beg_modal_test.rb +++ b/test/system/components/beg_modal_test.rb @@ -49,7 +49,7 @@ class BegModalTest < ApplicationSystemTestCase test "doesn't show to active subscriber" do user = setup_user - User.any_instance.stubs(current_subscription: true) + User.any_instance.stubs(current_subscription?: true) use_capybara_host do Exercism.without_bullet do