diff options
Diffstat (limited to 'spec/arel/insert_manager_spec.rb')
-rw-r--r-- | spec/arel/insert_manager_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/arel/insert_manager_spec.rb b/spec/arel/insert_manager_spec.rb index ed0725e79d..807f1324d2 100644 --- a/spec/arel/insert_manager_spec.rb +++ b/spec/arel/insert_manager_spec.rb @@ -88,7 +88,7 @@ module Arel manager = Arel::InsertManager.new Table.engine manager.into table - manager.values << 1 + manager.values = Nodes::Values.new [1] manager.to_sql.should be_like %{ INSERT INTO "users" VALUES (1) } @@ -101,8 +101,7 @@ module Arel manager = Arel::InsertManager.new Table.engine manager.into table - manager.values << 1 - manager.values << "aaron" + manager.values = Nodes::Values.new [1, 'aaron'] manager.columns << table[:id] manager.columns << table[:name] manager.to_sql.should be_like %{ |