Skip to content

Commit 0e906cf

Browse files
committed
fix: tests for mysql
1 parent 0339b3b commit 0e906cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rspec_sql_matcher/match_query_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
it 'matches the executed query with a regexp' do
66
expect do
77
Book.where(title: 'cool').first
8-
end.to match_query(/FROM "books" WHERE "books"."title" = ?/)
8+
end.to match_query(/FROM [`"]books[`"] WHERE [`"]books[`"].[`"]title[`"] = ?/)
99
end
1010

1111
it 'matches at least a query within a group' do
1212
expect do
1313
Book.all.to_a
1414
Book.where(title: 'cool').first
15-
end.to match_query(/WHERE "books"."title"/)
15+
end.to match_query(/WHERE [`"]books[`"].[`"]title[`"]/)
1616
end
1717

1818
it 'works with negation' do

0 commit comments

Comments
 (0)