test/test_rubype.rb in rubype-0.2.4 vs test/test_rubype.rb in rubype-0.2.5
- old
+ new
@@ -101,13 +101,13 @@
assert_equal meth.type_info, { [Numeric, Numeric] => String }
assert_equal meth.arg_types, [Numeric, Numeric]
assert_equal meth.return_type, String
err = assert_raises(Rubype::ReturnTypeError) { meth.(1,2) }
- assert_equal err.message, "Expected MyClass#test_mth to return String but got nil instead"
+ assert_equal err.message, %|Expected MyClass#test_mth to return String but got nil instead|
err = assert_raises(Rubype::ArgumentTypeError) { meth.(1,'2') }
- assert_equal err.message, "Expected MyClass#test_mth's 2th argument to be Numeric but got \"2\" instead"
+ assert_equal err.message, %|Expected MyClass#test_mth's 2nd argument to be Numeric but got "2" instead|
end
private
def assert_equal_to_s(str, val)
assert_equal str, val.to_s