[Groonga-commit] groonga/fluent-plugin-droonga at f9f5e19 [master] test column_create: define an expected dumped schema as a here document

Back to archive index

Kosuke Asami null+****@clear*****
Mon Jul 22 15:07:01 JST 2013


Kosuke Asami	2013-07-22 15:07:01 +0900 (Mon, 22 Jul 2013)

  New Revision: f9f5e198f7b2b515061534974455d91997d9785f
  https://github.com/groonga/fluent-plugin-droonga/commit/f9f5e198f7b2b515061534974455d91997d9785f

  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 15:04:19 +0900 (7257842)
+++ test/plugin/groonga/test_column_create.rb    2013-07-22 15:07:01 +0900 (8ef7e85)
@@ -89,7 +89,12 @@ column_create Books entry_title COLUMN_INDEX Books title
           "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
 
       data({
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index