test the path, not the parts
This commit is contained in:
parent
ba48870ead
commit
3e7f00ae19
|
@ -26,8 +26,7 @@ class TestConvertible < Test::Unit::TestCase
|
||||||
assert_equal({}, ret)
|
assert_equal({}, ret)
|
||||||
end
|
end
|
||||||
assert_match(/YAML Exception|syntax error/, out)
|
assert_match(/YAML Exception|syntax error/, out)
|
||||||
assert_match(/#{@base}/, out)
|
assert_match(/#{File.join(@base,@name)}/, out)
|
||||||
assert_match(/#{@name}/, out)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if RUBY_VERSION >= '1.9.2'
|
if RUBY_VERSION >= '1.9.2'
|
||||||
|
@ -38,8 +37,7 @@ class TestConvertible < Test::Unit::TestCase
|
||||||
assert_equal({}, ret)
|
assert_equal({}, ret)
|
||||||
end
|
end
|
||||||
assert_match(/invalid byte sequence in UTF-8/, out)
|
assert_match(/invalid byte sequence in UTF-8/, out)
|
||||||
assert_match(/#{@base}/, out)
|
assert_match(/#{File.join(@base,@name)}/, out)
|
||||||
assert_match(/#{@name}/, out)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue