Kosuke Asami
null+****@clear*****
Mon Jul 22 14:55:31 JST 2013
Kosuke Asami 2013-07-22 14:55:31 +0900 (Mon, 22 Jul 2013) New Revision: c54cf45100bf1d18fd706bc58f9fd6384016eb4b https://github.com/groonga/fluent-plugin-droonga/commit/c54cf45100bf1d18fd706bc58f9fd6384016eb4b Message: test column_create: define an expected dumped schema as a here document Modified files: test/plugin/groonga/test_column_create.rb Modified: test/plugin/groonga/test_column_create.rb (+6 -1) =================================================================== --- test/plugin/groonga/test_column_create.rb 2013-07-22 14:51:53 +0900 (f89d4f4) +++ test/plugin/groonga/test_column_create.rb 2013-07-22 14:55:31 +0900 (8e87629) @@ -127,7 +127,12 @@ column_create Books entry_title COLUMN_INDEX|WITH_SECTION|WITH_WEIGHT|WITH_POSIT "flags" => data[:flags], } @handler.column_create(request) - assert_equal("table_create Books TABLE_HASH_KEY --key_type ShortText\ncolumn_create Books title COLUMN_SCALAR ShortText\n\n#{data[:schema]}", dump) + assert_equal(<<-EXPECTED.chomp, dump) +table_create Books TABLE_HASH_KEY --key_type ShortText +column_create Books title COLUMN_SCALAR ShortText + +#{data[:schema]} + EXPECTED end end end -------------- next part -------------- HTML����������������������������...Download