aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-08-03 22:49:36 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-08-03 22:49:36 -0500
commit31f6100835045fea40f13a5d18df31e2fd8951ee (patch)
tree5dbc76cb69136e71e84279174fa3700d1946efd6 /railties
parent77be872819d6e9fd63f4253398dbfd6990166a7c (diff)
downloadrails-31f6100835045fea40f13a5d18df31e2fd8951ee.tar.gz
rails-31f6100835045fea40f13a5d18df31e2fd8951ee.tar.bz2
rails-31f6100835045fea40f13a5d18df31e2fd8951ee.zip
Deterministic comparisons please
Diffstat (limited to 'railties')
-rw-r--r--railties/test/application/loading_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/application/loading_test.rb b/railties/test/application/loading_test.rb
index 1c5055a413..f1b07b2ca7 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], ActiveRecord::Base.descendants
+ assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata].sort, ActiveRecord::Base.descendants.sort
get "/load"
- assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata, Post], ActiveRecord::Base.descendants
+ assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata, Post].sort, ActiveRecord::Base.descendants.sort
get "/unload"
- assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata], ActiveRecord::Base.descendants
+ assert_equal [ActiveStorage::Blob, ActiveStorage::Attachment, ActiveRecord::SchemaMigration, ActiveRecord::InternalMetadata].sort, ActiveRecord::Base.descendants.sort
end
test "initialize cant be called twice" do