mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Convert to strings so array can be sorted deterministically
This commit is contained in:
parent
31f6100835
commit
2194c27091
1 changed files with 3 additions and 3 deletions
|
@ -115,11 +115,11 @@ class LoadingTest < ActiveSupport::TestCase
|
||||||
require "#{rails_root}/config/environment"
|
require "#{rails_root}/config/environment"
|
||||||
setup_ar!
|
setup_ar!
|
||||||
|
|
||||||
assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata].sort, ActiveRecord::Base.descendants.sort
|
assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata].collect(&:to_s).sort, ActiveRecord::Base.descendants.collect(&:to_s).sort
|
||||||
get "/load"
|
get "/load"
|
||||||
assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata, Post].sort, ActiveRecord::Base.descendants.sort
|
assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata, Post].collect(&:to_s).sort, ActiveRecord::Base.descendants.collect(&:to_s).sort
|
||||||
get "/unload"
|
get "/unload"
|
||||||
assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata].sort, ActiveRecord::Base.descendants.sort
|
assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata].collect(&:to_s).sort, ActiveRecord::Base.descendants.collect(&:to_s).sort
|
||||||
end
|
end
|
||||||
|
|
||||||
test "initialize cant be called twice" do
|
test "initialize cant be called twice" do
|
||||||
|
|
Loading…
Reference in a new issue