-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94e7a5b
commit 3af19d3
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
let(:translator) { Polo::SqlTranslator.new(netto, Polo::Configuration.new(adapter: :mysql)) } | ||
|
||
describe '#ignore_transform' do | ||
it 'appends the IGNORE command after INSERTs' | ||
it 'appends the IGNORE command after INSERTs' do | ||
insert_netto = [%q{INSERT IGNORE INTO "chefs" ("id", "name", "email") VALUES (1, 'Netto', '[email protected]')}] | ||
|
||
records = translator.records | ||
|
@@ -27,7 +27,7 @@ | |
|
||
|
||
describe '#on_duplicate_key_update' do | ||
it 'appends ON DUPLICATE KEY UPDATE with all values to the current INSERT statement' | ||
it 'appends ON DUPLICATE KEY UPDATE with all values to the current INSERT statement' do | ||
insert_netto = [ | ||
%q{INSERT INTO "chefs" ("id", "name", "email") VALUES (1, 'Netto', '[email protected]') ON DUPLICATE KEY UPDATE id = VALUES(id), name = VALUES(name), email = VALUES(email)} | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
end | ||
|
||
describe '#ignore_transform' do | ||
it 'transforms INSERT by appending WHERE NOT EXISTS clause' | ||
it 'transforms INSERT by appending WHERE NOT EXISTS clause' do | ||
|
||
insert_netto = [%q{INSERT INTO "chefs" ("id", "name", "email") SELECT 1, 'Netto', '[email protected]' WHERE NOT EXISTS (SELECT 1 FROM chefs WHERE id=1);}] | ||
|
||
|