Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better test name in the java interop koan

  • Loading branch information...
commit db3bbdcf45980f16f7620498a75bf86646ffc8ac 1 parent 1a0d82a
@jimweirich jimweirich authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  koans/about_java_interop.rb
  2. +1 −1  src/about_java_interop.rb
View
2  koans/about_java_interop.rb
@@ -102,7 +102,7 @@ def test_some_ruby_objects_can_be_coerced_to_java
assert_equal __, false.to_java.class
end
- def test_some_ruby_objects_can_NOT_be_coerced_to_java
+ def test_some_ruby_objects_are_not_coerced_to_what_you_might_expect
assert_equal __, [].to_java.class == Java::JavaUtil::ArrayList
assert_equal __, {}.to_java.class == Java::JavaUtil::HashMap
assert_equal __, Object.new.to_java.class == Java::JavaLang::Object
View
2  src/about_java_interop.rb
@@ -102,7 +102,7 @@ def test_some_ruby_objects_can_be_coerced_to_java
assert_equal __(Java::JavaLang::Boolean), false.to_java.class
end
- def test_some_ruby_objects_can_NOT_be_coerced_to_java
+ def test_some_ruby_objects_are_not_coerced_to_what_you_might_expect
assert_equal __(false), [].to_java.class == Java::JavaUtil::ArrayList
assert_equal __(false), {}.to_java.class == Java::JavaUtil::HashMap
assert_equal __(false), Object.new.to_java.class == Java::JavaLang::Object
Please sign in to comment.
Something went wrong with that request. Please try again.