diff options
author | Kir Shatrov <shatrov@me.com> | 2017-04-30 22:19:09 -0400 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2017-05-01 08:21:58 -0400 |
commit | 5d6d14cb6be217abc04253da0fe49721d09e9575 (patch) | |
tree | b3ca61f5ff9a083f0b64611788554480d94d36dd /test/test_table.rb | |
parent | 437aa3a4bb8ad4f3f4eba299dbb1112852f9c7ac (diff) | |
download | rails-5d6d14cb6be217abc04253da0fe49721d09e9575.tar.gz rails-5d6d14cb6be217abc04253da0fe49721d09e9575.tar.bz2 rails-5d6d14cb6be217abc04253da0fe49721d09e9575.zip |
Support multiple inserts
Diffstat (limited to 'test/test_table.rb')
-rw-r--r-- | test/test_table.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_table.rb b/test/test_table.rb index 9877d24541..e83d04d2bd 100644 --- a/test/test_table.rb +++ b/test/test_table.rb @@ -42,10 +42,10 @@ module Arel end it 'should return an insert manager' do - im = @relation.compile_insert 'VALUES(NULL)' + im = @relation.compile_insert '(NULL)' assert_kind_of Arel::InsertManager, im im.into Table.new(:users) - assert_equal "INSERT INTO \"users\" VALUES(NULL)", im.to_sql + assert_equal "INSERT INTO \"users\" VALUES (NULL)", im.to_sql end describe 'skip' do |