Skip to content

Commit

Permalink
fix test for mysql and postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Oct 3, 2024
1 parent dec8307 commit 2ba51cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/ransack/adapters/active_record/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ module ActiveRecord
)
expect(s.term_cont).to eq 'atlo'
expect(s.name_or_email_cont).to eq 'different'
expect(s.result.to_sql).to include('"people"."name" LIKE \'%different%\'')
expect(s.result.to_sql).to include('"people"."email" LIKE \'%different%\'')
expect(s.result.to_sql).to include('"people"."name" LIKE \'%atlo%\'')
expect(s.result.to_sql).to include('"people"."email" LIKE \'%atlo%\'')
expect(s.result.to_sql).to include(/("|`)people("|`)\.("|`)name("|`) I?LIKE '%different%'/i)
expect(s.result.to_sql).to include(/("|`)people("|`)\.("|`)email("|`) I?LIKE '%different%'/i)
expect(s.result.to_sql).to include(/("|`)people("|`)\.("|`)name("|`) I?LIKE '%atlo%'/i)
expect(s.result.to_sql).to include(/("|`)people("|`)\.("|`)email("|`) I?LIKE '%atlo%'/i)
end

it 'also works with associations' do
Expand Down

0 comments on commit 2ba51cd

Please sign in to comment.