diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2016-08-14 20:56:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-14 20:56:44 -0400 |
commit | 984ffa5b4606a220413d9026385f01fe72a80f6f (patch) | |
tree | 146ba05b5222d847193603159a9006732f123321 | |
parent | 5c2c6966a0d54b0ac515767cd0efab618ed95569 (diff) | |
parent | c6e10c0bc94f0ca52f68ffcb99f5dad0ba1487f6 (diff) | |
download | rails-984ffa5b4606a220413d9026385f01fe72a80f6f.tar.gz rails-984ffa5b4606a220413d9026385f01fe72a80f6f.tar.bz2 rails-984ffa5b4606a220413d9026385f01fe72a80f6f.zip |
Merge pull request #26166 from kamipo/fix_ar_fixtures_doc
Fix `ActiveRecord::FixtureSet` docs [ci skip]
-rw-r--r-- | activerecord/lib/active_record/fixtures.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 57592d368f..40a9aa2783 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 <tt>ActiveRecord::TestCase.fixture_path=(path)</tt> (this is automatically + # appointed by <tt>ActiveSupport::TestCase.fixture_path=(path)</tt> (this is automatically # configured for Rails, so you can just put your files in <tt><your-rails-app>/test/fixtures/</tt>). # The fixture file ends with the +.yml+ file extension, for example: # <tt><your-rails-app>/test/fixtures/web_sites.yml</tt>). @@ -57,7 +57,7 @@ module ActiveRecord # # require 'test_helper' # - # class WebSiteTest < ActiveRecord::TestCase + # class WebSiteTest < ActiveSupport::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 ActiveRecord::TestCase-derived class: + # following in your ActiveSupport::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 < ActiveRecord::TestCase + # class FooTest < ActiveSupport::TestCase # self.use_transactional_tests = true # # test "godzilla" do |