diff --git a/spec/ransack/helpers/form_helper_spec.rb b/spec/ransack/helpers/form_helper_spec.rb index db88b838..43aee9e9 100644 --- a/spec/ransack/helpers/form_helper_spec.rb +++ b/spec/ransack/helpers/form_helper_spec.rb @@ -850,6 +850,11 @@ module Helpers before do Ransack.configure { |c| c.search_key = :example } end + + after do + Ransack.configure { |c| c.search_key = nil } + end + subject { @controller.view_context .search_form_for(Person.ransack) { |f| f.text_field :name_eq }