diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-08-11 13:16:07 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-08-11 17:39:28 +0900 |
commit | b8d6e15f943af4c10da0ee3dcd047da0302b832a (patch) | |
tree | 92ede5c823db82eba1e2061ac9045b506adb7a74 | |
parent | 7c279ad696e1154b2f2dbef26ba0ff0a42aa105a (diff) | |
download | rails-b8d6e15f943af4c10da0ee3dcd047da0302b832a.tar.gz rails-b8d6e15f943af4c10da0ee3dcd047da0302b832a.tar.bz2 rails-b8d6e15f943af4c10da0ee3dcd047da0302b832a.zip |
Use `ActiveRecord::TestCase` rather than `ActiveSupport::TestCase` in AR test cases
-rw-r--r-- | activerecord/test/cases/fixtures_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/relation/mutation_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/fixtures_test.rb b/activerecord/test/cases/fixtures_test.rb index f799f1e1fa..24a9894f19 100644 --- a/activerecord/test/cases/fixtures_test.rb +++ b/activerecord/test/cases/fixtures_test.rb @@ -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 diff --git a/activerecord/test/cases/relation/mutation_test.rb b/activerecord/test/cases/relation/mutation_test.rb index 018a676a4a..ca5d187819 100644 --- a/activerecord/test/cases/relation/mutation_test.rb +++ b/activerecord/test/cases/relation/mutation_test.rb @@ -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 |