null+****@clear*****
null+****@clear*****
2011年 5月 30日 (月) 21:47:22 JST
Kouhei Sutou 2011-05-30 12:47:22 +0000 (Mon, 30 May 2011) New Revision: c8324d3d04ee362524528442ef79b73cfdedca3d Log: [http][test] update error message on invalid name. Modified files: test/unit/http/test-http-schema.rb Modified: test/unit/http/test-http-schema.rb (+4 -1) =================================================================== --- test/unit/http/test-http-schema.rb 2011-05-30 12:43:30 +0000 (a2efa3b) +++ test/unit/http/test-http-schema.rb 2011-05-30 12:47:22 +0000 (6d0b675) @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2009-2010 Kouhei Sutou <kou****@clear*****> +# Copyright (C) 2009-2011 Kouhei Sutou <kou****@clear*****> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -199,6 +199,7 @@ class HTTPSchemaTest < Test::Unit::TestCase def test_table_create_with_dot_name response = get(command_path(:table_create, :name => "mori.daijiro")) assert_error_response(Result::INVALID_ARGUMENT, + "[table][create]: " + "name can't start with '_' and 0-9, " + "and contains only 0-9, A-Z, a-z, or _: " + "<mori.daijiro>", @@ -209,6 +210,7 @@ class HTTPSchemaTest < Test::Unit::TestCase def test_table_create_with_under_score_started_name response = get(command_path(:table_create, :name => "_mori")) assert_error_response(Result::INVALID_ARGUMENT, + "[table][create]: " + "name can't start with '_' and 0-9, " + "and contains only 0-9, A-Z, a-z, or _: " + "<_mori>", @@ -224,6 +226,7 @@ class HTTPSchemaTest < Test::Unit::TestCase def test_table_create_with_colon_name response = get(command_path(:table_create, :name => "daijiro:mori")) assert_error_response(Result::INVALID_ARGUMENT, + "[table][create]: " + "name can't start with '_' and 0-9, " + "and contains only 0-9, A-Z, a-z, or _: " + "<daijiro:mori>",