Skip to content

Commit

Permalink
Test with mutable strings
Browse files Browse the repository at this point in the history
  • Loading branch information
fbogsany committed Feb 7, 2024
1 parent b8ee96f commit 3d22b95
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
let(:config) { { propagator: :none } }

it 'does not inject context' do
sql = 'SELECT * from users where users.id = 1 and users.email = "[email protected]"'
sql = +'SELECT * from users where users.id = 1 and users.email = "[email protected]"'
original_sql = sql.dup
expect do
client.query(sql)
Expand All @@ -363,7 +363,7 @@
let(:config) { { propagator: nil } }

it 'does not inject context' do
sql = 'SELECT * from users where users.id = 1 and users.email = "[email protected]"'
sql = +'SELECT * from users where users.id = 1 and users.email = "[email protected]"'
original_sql = sql.dup
expect do
client.query(sql)
Expand All @@ -376,7 +376,7 @@
let(:config) { { propagator: :vitess } }

it 'does inject context' do
sql = 'SELECT * from users where users.id = 1 and users.email = "[email protected]"'
sql = +'SELECT * from users where users.id = 1 and users.email = "[email protected]"'
original_sql = sql.dup
expect do
client.query(sql)
Expand Down

0 comments on commit 3d22b95

Please sign in to comment.