diff --git a/spec/datagrid/form_builder_spec.rb b/spec/datagrid/form_builder_spec.rb
index 3847e35..bf57740 100644
--- a/spec/datagrid/form_builder_spec.rb
+++ b/spec/datagrid/form_builder_spec.rb
@@ -20,6 +20,7 @@ class MyTemplate
let(:view_options) { {} }
SELECT_EMPTY_OPTION = Rails.version >= "6.0" ? '' : ''
+ AUTOCOMPLETE_OPTION = Rails.version >= "7.0" ? 'autocomplete="off"' : ''
describe ".datagrid_filter" do
@@ -365,7 +366,7 @@ class MyTemplate
end
it { should equal_to_dom(
# hidden is important when default is set to true
- ''
+ %{}
)}
end
context "with xboolean filter type" do
@@ -576,7 +577,7 @@ class MyTemplate
end
let(:expected_html) do
<<-HTML
-