diff options
author | Matt Jankowski <matt@jankowski.online> | 2023-03-02 04:04:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-02 10:04:14 +0100 |
commit | b6602f68eb0dbe07ee2e9b8fb27ee048037c414e (patch) | |
tree | dda3bf974627349a30ab56abeb017a9954fd4904 /app | |
parent | cb97ba7a2f195f1c816d89f05c8c8f7783b979d8 (diff) |
Spec coverage for HomeHelper (#23907)
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/home_helper.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/app/helpers/home_helper.rb b/app/helpers/home_helper.rb index f41104709..ea2196086 100644 --- a/app/helpers/home_helper.rb +++ b/app/helpers/home_helper.rb @@ -41,9 +41,9 @@ module HomeHelper def obscured_counter(count) if count <= 0 - 0 + '0' elsif count == 1 - 1 + '1' else '1+' end @@ -57,14 +57,6 @@ module HomeHelper end end - def optional_link_to(condition, path, options = {}, &block) - if condition - link_to(path, options, &block) - else - content_tag(:div, &block) - end - end - def sign_up_message if closed_registrations? t('auth.registration_closed', instance: site_hostname) |