From 3335cb7f12f059c8db8cc5195ef214d3215edf44 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Tue, 29 May 2012 17:26:50 +0530 Subject: JRuby return different Array for module contents. Test was failing against JRuby. It loads like [Constant3 Constant1] --- activesupport/test/core_ext/module_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/test/core_ext') 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 -- cgit v1.2.3