diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/dtrace/helper.rb | 2 | ||||
-rw-r--r-- | test/dtrace/test_method_cache.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/dtrace/helper.rb b/test/dtrace/helper.rb index 22865aac25..1417185537 100644 --- a/test/dtrace/helper.rb +++ b/test/dtrace/helper.rb @@ -32,7 +32,7 @@ module DTrace when /darwin/i READ_PROBES = proc do |cmd| PTY.spawn(*cmd) do |io, _| - break io.readlines + break io.readlines.each {|line| line.sub!(/\r$/, "")} end end end diff --git a/test/dtrace/test_method_cache.rb b/test/dtrace/test_method_cache.rb index 7ecec194b2..a101b5ddec 100644 --- a/test/dtrace/test_method_cache.rb +++ b/test/dtrace/test_method_cache.rb @@ -9,9 +9,9 @@ module DTrace class String; def abc() end end class Object; def abc() end end code - assert_not_includes lines, "String #{rbfile} 1\n" - assert_includes lines, "String #{rbfile} 2\n" - assert_includes lines, "global #{rbfile} 3\n" + assert_not_include lines, "String #{rbfile} 1\n" + assert_include lines, "String #{rbfile} 2\n" + assert_include lines, "global #{rbfile} 3\n" end end |