aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_regexp.rb4
-rw-r--r--test/ruby/test_string.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb
index 40c084ffbe..16f13ea19d 100644
--- a/test/ruby/test_regexp.rb
+++ b/test/ruby/test_regexp.rb
@@ -1012,7 +1012,7 @@ class TestRegexp < Test::Unit::TestCase
end
def test_eq_tilde_can_be_overridden
- assert_in_out_err([], <<-RUBY, ["foo"], [])
+ assert_separately([], <<-RUBY)
class Regexp
undef =~
def =~(str)
@@ -1020,7 +1020,7 @@ class TestRegexp < Test::Unit::TestCase
end
end
- puts // =~ ""
+ assert_equal("foo", // =~ "")
RUBY
end
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index 8d96c8cbae..766b3cfc97 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -2258,7 +2258,7 @@ class TestString < Test::Unit::TestCase
end
def test_eq_tilde_can_be_overridden
- assert_in_out_err([], <<-RUBY, ["foo"], [])
+ assert_separately([], <<-RUBY)
class String
undef =~
def =~(str)
@@ -2266,7 +2266,7 @@ class TestString < Test::Unit::TestCase
end
end
- puts "" =~ //
+ assert_equal("foo", "" =~ //)
RUBY
end
end