Skip to content

Tests fail on JRuby #2

@a3li

Description

@a3li

The following test fails on JRuby (jruby 1.5.3 (ruby 1.8.7 patchlevel 249) (2011-02-24 6586) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_23) [amd64-java]):

alex@argon locale-2.0.5 % jruby -Ilib/ -d test/test_detect_general.rb
Loaded suite test/test_detect_general
Started
Locale::Driver::JRuby is loaded.
..........Exception `Test::Unit::AssertionFailedError' at /usr/share/jruby/lib/ruby/1.8/test/unit/assertions.rb:48 - <#<Locale::Tag::Simple: de>> expected but was
<#<Locale::Tag::Common: de_DE>>.
F
Finished in 0.719 seconds.

  1) Failure:
test_wrong_envs(TestDetectGeneral) [test/test_detect_general.rb:185]:
<#<Locale::Tag::Simple: de>> expected but was
<#<Locale::Tag::Common: de_DE>>.

11 tests, 64 assertions, 1 failures, 0 errors

It seems that the JVM is asked for a default locale and the one explicitly set in the test is not used. I am not sure how to properly fix this, thus I cannot offer a patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions