1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #26113 from kamipo/use_ar_test_case_instead_of_as_test_case

Use `ActiveRecord::TestCase` rather than `ActiveSupport::TestCase` in AR test cases
This commit is contained in:
Rafael França 2016-08-12 20:34:34 -03:00 committed by GitHub
commit b2ab8b77de
2 changed files with 2 additions and 2 deletions

View file

@ -280,7 +280,7 @@ class FixturesTest < ActiveRecord::TestCase
end
end
class HasManyThroughFixture < ActiveSupport::TestCase
class HasManyThroughFixture < ActiveRecord::TestCase
def make_model(name)
Class.new(ActiveRecord::Base) { define_singleton_method(:name) { name } }
end

View file

@ -2,7 +2,7 @@ require "cases/helper"
require "models/post"
module ActiveRecord
class RelationMutationTest < ActiveSupport::TestCase
class RelationMutationTest < ActiveRecord::TestCase
class FakeKlass < Struct.new(:table_name, :name)
extend ActiveRecord::Delegation::DelegateCache
inherited self