diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-08-04 10:30:19 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-08-04 10:30:19 -0500 |
commit | 2194c270911c5fce175501b7ca7658e0522715a1 (patch) | |
tree | b21dff6a55e5d8b6becc2978c9e2350e2228f781 /railties | |
parent | 31f6100835045fea40f13a5d18df31e2fd8951ee (diff) | |
download | rails-2194c270911c5fce175501b7ca7658e0522715a1.tar.gz rails-2194c270911c5fce175501b7ca7658e0522715a1.tar.bz2 rails-2194c270911c5fce175501b7ca7658e0522715a1.zip |
Convert to strings so array can be sorted deterministically
Diffstat (limited to 'railties')
-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 f1b07b2ca7..dd62907d18 100644 --- a/railties/test/application/loading_test.rb +++ b/railties/test/application/loading_test.rb @@ -115,11 +115,11 @@ class LoadingTest < ActiveSupport::TestCase require "#{rails_root}/config/environment" 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" - 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" - 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 test "initialize cant be called twice" do |