aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2012-05-29 17:26:50 +0530
committerArun Agrawal <arunagw@gmail.com>2012-05-29 17:30:12 +0530
commit3335cb7f12f059c8db8cc5195ef214d3215edf44 (patch)
tree41a8f39acade5b6c4cb42d21ac4dd7431e66070b
parent6ba93ac6f6fa873c510a084c6f178390939841e9 (diff)
downloadrails-3335cb7f12f059c8db8cc5195ef214d3215edf44.tar.gz
rails-3335cb7f12f059c8db8cc5195ef214d3215edf44.tar.bz2
rails-3335cb7f12f059c8db8cc5195ef214d3215edf44.zip
JRuby return different Array for module contents.
Test was failing against JRuby. It loads like [Constant3 Constant1]
-rw-r--r--activesupport/test/core_ext/module_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb
index 6e1b3ca010..bd41311739 100644
--- a/activesupport/test/core_ext/module_test.rb
+++ b/activesupport/test/core_ext/module_test.rb
@@ -234,7 +234,7 @@ class ModuleTest < ActiveSupport::TestCase
def test_local_constant_names
ActiveSupport::Deprecation.silence do
- assert_equal %w(Constant1 Constant3), Ab.local_constant_names
+ assert_equal %w(Constant1 Constant3), Ab.local_constant_names.sort.map(&:to_s)
end
end
end