diff --git a/test/client_test.rb b/test/client_test.rb index e32937907..6e017485c 100644 --- a/test/client_test.rb +++ b/test/client_test.rb @@ -10,7 +10,7 @@ def test_gen_sockpath Client.util("gen-sockpath") end - assert_match /ruby-debug-sock/, output + assert_match(/ruby-debug-sock/, output) end def test_list_socks @@ -18,7 +18,7 @@ def test_list_socks Client.util("list-socks") end - assert_match /ruby-debug-sock/, output + assert_match(/ruby-debug-sock/, output) end def test_unknown_command diff --git a/test/support/test_case.rb b/test/support/test_case.rb index 042f8e39b..a8740eb95 100644 --- a/test/support/test_case.rb +++ b/test/support/test_case.rb @@ -11,6 +11,10 @@ class TestCase < Test::Unit::TestCase include TestUtils include AssertionHelpers + def setup + @temp_file = nil + end + def teardown remove_temp_file end