X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=test%2FTC_command.rb;fp=test%2FTC_command.rb;h=440ec340cf748ea215af9b24216a9baf5cd75452;hb=9c4be91e5120e8fd4c5aa2e3def7bad24fea03cb;hp=3487b947111cb9771b434872491a0e13ea25713b;hpb=f128a5d0b7bebc9e96a4fa3a5ede28d43d8ee499;p=shogi-server%2Fshogi-server.git diff --git a/test/TC_command.rb b/test/TC_command.rb index 3487b94..440ec34 100644 --- a/test/TC_command.rb +++ b/test/TC_command.rb @@ -287,29 +287,29 @@ class TestFactoryMethod < Test::Unit::TestCase cmd = ShogiServer::Command.factory("should_be_error", @p) assert_instance_of(ShogiServer::ErrorCommand, cmd) cmd.call - assert_match /unknown command: should_be_error/, cmd.msg + assert_match(/unknown command: should_be_error/, cmd.msg) end def test_error_login cmd = ShogiServer::Command.factory("LOGIN hoge foo", @p) assert_instance_of(ShogiServer::ErrorCommand, cmd) cmd.call - assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg + assert_no_match( /unknown command: LOGIN hoge foo/, cmd.msg) cmd = ShogiServer::Command.factory("LOGin hoge foo", @p) assert_instance_of(ShogiServer::ErrorCommand, cmd) cmd.call - assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg + assert_no_match(/unknown command: LOGIN hoge foo/, cmd.msg) cmd = ShogiServer::Command.factory("LOGIN hoge foo", @p) assert_instance_of(ShogiServer::ErrorCommand, cmd) cmd.call - assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg + assert_no_match(/unknown command: LOGIN hoge foo/, cmd.msg) cmd = ShogiServer::Command.factory("LOGINhoge foo", @p) assert_instance_of(ShogiServer::ErrorCommand, cmd) cmd.call - assert_no_match /unknown command: LOGIN hoge foo/, cmd.msg + assert_no_match(/unknown command: LOGIN hoge foo/, cmd.msg) end end