From 407e43866e2e5bb91eb7e3de2f9bed57cd25abc2 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Sun, 14 Aug 2016 04:34:35 +0900 Subject: Consolidate `ActiveRecord::TestCase` and `ActiveSupport::TestCase` in AR test cases --- activerecord/lib/active_record/fixtures.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 40a9aa2783..57592d368f 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -14,7 +14,7 @@ module ActiveRecord # \Fixtures are a way of organizing data that you want to test against; in short, sample data. # # They are stored in YAML files, one file per model, which are placed in the directory - # appointed by ActiveSupport::TestCase.fixture_path=(path) (this is automatically + # appointed by ActiveRecord::TestCase.fixture_path=(path) (this is automatically # configured for Rails, so you can just put your files in /test/fixtures/). # The fixture file ends with the +.yml+ file extension, for example: # /test/fixtures/web_sites.yml). @@ -57,7 +57,7 @@ module ActiveRecord # # require 'test_helper' # - # class WebSiteTest < ActiveSupport::TestCase + # class WebSiteTest < ActiveRecord::TestCase # test "web_site_count" do # assert_equal 2, WebSite.count # end @@ -89,7 +89,7 @@ module ActiveRecord # end # # In order to use these methods to access fixtured data within your testcases, you must specify one of the - # following in your ActiveSupport::TestCase-derived class: + # following in your ActiveRecord::TestCase-derived class: # # - to fully enable instantiated fixtures (enable alternate methods #1 and #2 above) # self.use_instantiated_fixtures = true @@ -144,7 +144,7 @@ module ActiveRecord # Test cases can use begin+rollback to isolate their changes to the database instead of having to # delete+insert for every test case. # - # class FooTest < ActiveSupport::TestCase + # class FooTest < ActiveRecord::TestCase # self.use_transactional_tests = true # # test "godzilla" do -- cgit v1.2.3