Skip to content

Commit

Permalink
Including new default classes in loading test
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Aug 3, 2017
1 parent 425aaab commit a56b2a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions railties/test/application/loading_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ class Post < ActiveRecord::Base
require "#{rails_root}/config/environment"
setup_ar!

assert_equal [ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata], ActiveRecord::Base.descendants
assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata], ActiveRecord::Base.descendants
get "/load"
assert_equal [ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata, Post], ActiveRecord::Base.descendants
assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata, Post], ActiveRecord::Base.descendants
get "/unload"
assert_equal [ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata], ActiveRecord::Base.descendants
assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata], ActiveRecord::Base.descendants
end

test "initialize cant be called twice" do
Expand Down

0 comments on commit a56b2a5

Please sign in to comment.