Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple form integration #1487

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Next Next commit
Add first spec for #search_simple_form_for
  • Loading branch information
abinoam committed Apr 8, 2024
commit a1c670d0ad511b103ba3d40546af216f109666ea
6 changes: 6 additions & 0 deletions spec/ransack/helpers/form_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,12 @@ module Helpers
}
it { should match /example_name_eq/ }
end

describe '#search_simple_form_for with default format' do
subject { @controller.view_context
.search_simple_form_for(Person.ransack) {} }
it { should match /action="\/people"/ }
end
end
end
end