aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/test_fixtures_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/test_fixtures_test.rb')
-rw-r--r--activerecord/test/cases/test_fixtures_test.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/activerecord/test/cases/test_fixtures_test.rb b/activerecord/test/cases/test_fixtures_test.rb
new file mode 100644
index 0000000000..4411410eda
--- /dev/null
+++ b/activerecord/test/cases/test_fixtures_test.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+require "cases/helper"
+
+class TestFixturesTest < ActiveRecord::TestCase
+ setup do
+ @klass = Class.new
+ @klass.include(ActiveRecord::TestFixtures)
+ end
+
+ def test_use_transactional_tests_defaults_to_true
+ assert_equal true, @klass.use_transactional_tests
+ end
+
+ def test_use_transactional_tests_can_be_overridden
+ @klass.use_transactional_tests = "foobar"
+
+ assert_equal "foobar", @klass.use_transactional_tests
+ end
+end