aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/test_insert_manager.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_insert_manager.rb b/test/test_insert_manager.rb
index b9ee6f76ac..97317791fe 100644
--- a/test/test_insert_manager.rb
+++ b/test/test_insert_manager.rb
@@ -136,6 +136,17 @@ module Arel
INSERT INTO "users" VALUES (1)
}
end
+
+ it "accepts sql literals" do
+ table = Table.new :users
+ manager = Arel::InsertManager.new
+ manager.into table
+
+ manager.values = Arel.sql("DEFAULT VALUES")
+ manager.to_sql.must_be_like %{
+ INSERT INTO "users" DEFAULT VALUES
+ }
+ end
end
describe "combo" do