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:
commit
b2ab8b77de
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue