Permalink
Browse files

JRuby return different Array for module contents.

Test was failing against JRuby. 

It loads like [Constant3 Constant1]
  • Loading branch information...
arunagw committed May 29, 2012
1 parent 6ba93ac commit 3335cb7f12f059c8db8cc5195ef214d3215edf44
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/test/core_ext/module_test.rb
@@ -234,7 +234,7 @@ def test_local_constants
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

0 comments on commit 3335cb7

Please sign in to comment.