1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/test_fixtures_test.rb
2017-07-19 22:27:07 +03:00

20 lines
472 B
Ruby

# 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