diff --git a/test/comfy_bootstrap_form/view_helpers_test.rb b/test/comfy_bootstrap_form/view_helpers_test.rb
index 6d07cf1..c70c712 100644
--- a/test/comfy_bootstrap_form/view_helpers_test.rb
+++ b/test/comfy_bootstrap_form/view_helpers_test.rb
@@ -8,11 +8,11 @@ class ViewHelpersTest < ActionView::TestCase
# Rails 6 doesn't use utf8 input anymore
def utf8_input
- return if Rails.version > "5.2"
-
- <<~HTML
-
- HTML
+ if Rails.version < "6.0.0"
+ <<~HTML
+
+ HTML
+ end
end
def test_bootstrap_form_with