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
|
||||||
end
|
end
|
||||||
|
|
||||||
class HasManyThroughFixture < ActiveSupport::TestCase
|
class HasManyThroughFixture < ActiveRecord::TestCase
|
||||||
def make_model(name)
|
def make_model(name)
|
||||||
Class.new(ActiveRecord::Base) { define_singleton_method(:name) { name } }
|
Class.new(ActiveRecord::Base) { define_singleton_method(:name) { name } }
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,7 @@ require "cases/helper"
|
||||||
require "models/post"
|
require "models/post"
|
||||||
|
|
||||||
module ActiveRecord
|
module ActiveRecord
|
||||||
class RelationMutationTest < ActiveSupport::TestCase
|
class RelationMutationTest < ActiveRecord::TestCase
|
||||||
class FakeKlass < Struct.new(:table_name, :name)
|
class FakeKlass < Struct.new(:table_name, :name)
|
||||||
extend ActiveRecord::Delegation::DelegateCache
|
extend ActiveRecord::Delegation::DelegateCache
|
||||||
inherited self
|
inherited self
|
||||||
|
|
Loading…
Reference in a new issue