diff options
Diffstat (limited to 'spec/arel')
-rw-r--r-- | spec/arel/insert_manager_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/arel/insert_manager_spec.rb b/spec/arel/insert_manager_spec.rb index 807f1324d2..a6d34f4357 100644 --- a/spec/arel/insert_manager_spec.rb +++ b/spec/arel/insert_manager_spec.rb @@ -9,6 +9,15 @@ module Arel end describe 'insert' do + it "inserts false" do + table = Table.new(:users) + manager = Arel::InsertManager.new Table.engine + manager.insert [[table[:id], false]] + manager.to_sql.should be_like %{ + INSERT INTO "users" ("id") VALUES ('f') + } + end + it "inserts null" do table = Table.new(:users) manager = Arel::InsertManager.new Table.engine |