docbrown/spec/helpers
Jeremy Friesen b4b1212a33
Adding conditional rendering of navigation links (#16362)
Prior to this commit we had an inline logic check on whether or not to
render a navigation link.  As we are looking to rollout the feature flag
for Listings, we needed to add another somewhat complex conditional.

This commit moves the inline conditionals to a helper function, which
makes testing the logic far easier.  Especially since we need to bombard
the tests with the combination of 3 different boolean checks.  (And one
of those boolean checks requires even more but could be stubbed).

There should be no UI differences, as we're presently assuming the
Listings feature is enabled.

Related to forem/rfcs#291
2022-02-01 12:23:58 -05:00
..
application_helper_spec.rb Adding conditional rendering of navigation links (#16362) 2022-02-01 12:23:58 -05:00
articles_helper_spec.rb Remove unused assets (#15367) 2021-11-16 19:57:37 +01:00
authentication_helper_spec.rb Login with Google (#15986) 2022-01-13 10:25:52 -06:00
crayons_helper_spec.rb Update crayons_icon_tag helper (#16099) 2022-01-14 17:14:42 +07:00
date_helper_spec.rb Update format specifiers in readable_publish_date (#13660) 2021-05-07 08:51:49 +02:00
display_ad_helper_spec.rb Rubocop fixes (#14868) 2021-09-30 13:22:09 -04:00
feedback_messages_helper_spec.rb Clean up SiteConfig (#13738) 2021-05-18 09:38:31 +07:00
listing_helper_spec.rb Flaky Spec Fix:Remove let_it_be Test Prof Helper (#9556) 2020-07-29 11:31:01 +02:00
notifications_helper_spec.rb Move app/labor/reaction_image.rb to helper (#11678) 2020-12-01 14:15:30 +07:00
organization_helper_spec.rb Fix flaky organization helper spec (#7785) 2020-05-12 13:20:05 +02:00
profile_helper_spec.rb [Small Wins] Show character limits for profile inputs (#15255) 2021-11-05 09:11:42 -04:00
rate_limit_checker_helper_spec.rb Create settings model for rate limits (#13381) 2021-04-20 11:29:22 +07:00
social_image_helper_spec.rb Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
social_link_helper_spec.rb Flaky Spec Fix:Remove let_it_be Test Prof Helper (#9556) 2020-07-29 11:31:01 +02:00