summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/pathname/test_pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index 10ab154220..3114d1458d 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -486,7 +486,7 @@ class TestPathname < Test::Unit::TestCase
assert_equal(p1, p2)
obj = Object.new
- assert_raise(TypeError) { Pathname.new(obj) }
+ assert_raise_with_message(TypeError, /#to_path or #to_str/) { Pathname.new(obj) }
obj = Object.new
def obj.to_path; "a/path"; end