Skip to content

Commit 1886b10

Browse files
committed
Restore config so it doesn't mess with other specs
1 parent ad9e367 commit 1886b10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/ransack/helpers/form_helper_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,11 @@ module Helpers
850850
before do
851851
Ransack.configure { |c| c.search_key = :example }
852852
end
853+
854+
after do
855+
Ransack.configure { |c| c.search_key = nil }
856+
end
857+
853858
subject {
854859
@controller.view_context
855860
.search_form_for(Person.ransack) { |f| f.text_field :name_eq }

0 commit comments

Comments
 (0)