diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index 1e537bdb85..583e13278b 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -407,10 +407,10 @@ module TestIRB end assert_empty err assert_match(/^instance variables:\s+@a\n/m, out) - assert_match(/C#methods: m1\n/m, out) - assert_match(/M#methods: m2\n/m, out) - assert_match(/M2#methods: m3\n/m, out) - assert_match(/C.methods: m4\n/m, out) + assert_match(/C#methods:\s+m1\n/m, out) + assert_match(/M#methods:\s+m2\n/m, out) + assert_match(/M2#methods:\s+m3\n/m, out) + assert_match(/C.methods:\s+m4\n/m, out) end def test_show_source