Skip to content

Commit

Permalink
Restore config so it doesn't mess with other specs
Browse files Browse the repository at this point in the history
  • Loading branch information
abinoam committed Apr 9, 2024
1 parent ad9e367 commit 1886b10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/ransack/helpers/form_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 1886b10

Please sign in to comment.