Name AC::Parameters tests with aspect under change first

[skip ci]
This commit is contained in:
Jon Atack 2016-07-15 15:00:01 +02:00
parent 14e66ca59e
commit 506692308e
1 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@ module Ransack
context 'using a real ActionController::Parameter object',
if: ::ActiveRecord::VERSION::MAJOR > 3 do
describe '#sort_link should include search params with symbol q:' do
describe 'with symbol q:, #sort_link should include search params' do
subject { @controller.view_context.sort_link(Person.search, :name) }
let(:params) { ActionController::Parameters.new(
{ :q => { name_eq: 'TEST' }, controller: 'people' }
@ -347,7 +347,7 @@ module Ransack
}
end
describe "#sort_link should include search params with string 'q'" do
describe "with string 'q', #sort_link should include search params" do
subject { @controller.view_context.sort_link(Person.search, :name) }
let(:params) {
ActionController::Parameters.new(