diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2019-06-05 10:01:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-05 10:01:18 -0400 |
commit | 71a019efe8eaaac100640645d14ea6016fff2df7 (patch) | |
tree | 3b7146bdcda9b0509436f22a000d3a504fa0c4ba /railties/test | |
parent | b159cfc414cd2df0a43d14380745ff30000a68d0 (diff) | |
parent | 2f8b397258b66581409b0e6537f98ea9b56e9f19 (diff) | |
download | rails-71a019efe8eaaac100640645d14ea6016fff2df7.tar.gz rails-71a019efe8eaaac100640645d14ea6016fff2df7.tar.bz2 rails-71a019efe8eaaac100640645d14ea6016fff2df7.zip |
Merge pull request #36394 from eileencodes/treat-application-record-as-primary
Treat ActiveRecord::Base and ApplicationRecord as "primary"
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/loading_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/application/loading_test.rb b/railties/test/application/loading_test.rb index 9c98489590..322a6e1ca0 100644 --- a/railties/test/application/loading_test.rb +++ b/railties/test/application/loading_test.rb @@ -116,7 +116,7 @@ class LoadingTest < ActiveSupport::TestCase RUBY app_file "app/models/post.rb", <<-MODEL - class Post < ActiveRecord::Base + class Post < ApplicationRecord end MODEL @@ -133,9 +133,9 @@ class LoadingTest < ActiveSupport::TestCase require "#{rails_root}/config/environment" setup_ar! - assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata].collect(&:to_s).sort, ActiveRecord::Base.descendants.collect(&:to_s).sort + assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata, ApplicationRecord].collect(&:to_s).sort, ActiveRecord::Base.descendants.collect(&:to_s).sort get "/load" - assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata, Post].collect(&:to_s).sort, ActiveRecord::Base.descendants.collect(&:to_s).sort + assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata, ApplicationRecord, Post].collect(&:to_s).sort, ActiveRecord::Base.descendants.collect(&:to_s).sort get "/unload" assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata].collect(&:to_s).sort, ActiveRecord::Base.descendants.collect(&:to_s).sort end |