aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/base_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb
index 6fb046a44e..aa9f21ef36 100644
--- a/activerecord/test/cases/base_test.rb
+++ b/activerecord/test/cases/base_test.rb
@@ -329,6 +329,14 @@ class BasicsTest < ActiveRecord::TestCase
assert !cbs[1].frickinawesome
end
+ def test_create_without_prepared_statement
+ cb = CustomBulb.connection.unprepared_statement do
+ CustomBulb.create(name: 'Dude')
+ end
+
+ assert_equal('Dude', cb.name)
+ end
+
def test_load
topics = Topic.all.merge!(:order => 'id').to_a
assert_equal(4, topics.size)