Kosuke Asami
null+****@clear*****
Mon Jul 22 15:08:22 JST 2013
Kosuke Asami 2013-07-22 15:08:22 +0900 (Mon, 22 Jul 2013) New Revision: 7c994ad22376c5aaa2d0a255c938feb891c7c497 https://github.com/groonga/fluent-plugin-droonga/commit/7c994ad22376c5aaa2d0a255c938feb891c7c497 Message: test column_create: move common schema from test data to test Modified files: test/plugin/groonga/test_column_create.rb Modified: test/plugin/groonga/test_column_create.rb (+2 -5) =================================================================== --- test/plugin/groonga/test_column_create.rb 2013-07-22 15:07:01 +0900 (8ef7e85) +++ test/plugin/groonga/test_column_create.rb 2013-07-22 15:08:22 +0900 (c37cc76) @@ -77,9 +77,6 @@ column_create Books title COLUMN_VECTOR ShortText def test_index_column_type data = { :flags => "COLUMN_INDEX", - :schema => <<-SCHEMA, -column_create Books entry_title COLUMN_INDEX Books title - SCHEMA } request = { "table" => "Books", @@ -89,11 +86,11 @@ column_create Books entry_title COLUMN_INDEX Books title "flags" => data[:flags], } @handler.column_create(request) - assert_equal(<<-EXPECTED.chomp, dump) + assert_equal(<<-EXPECTED, dump) table_create Books TABLE_HASH_KEY --key_type ShortText column_create Books title COLUMN_SCALAR ShortText -#{data[:schema]} +column_create Books entry_title #{data[:flags]} Books title EXPECTED end -------------- next part -------------- HTML����������������������������...Download