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

Back to archive index

Kosuke Asami null+****@clear*****
Mon Jul 22 15:09:27 JST 2013


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

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

  Message:
    test column_create: define a expected dumped schema as a here document

  Modified files:
    test/plugin/groonga/test_column_create.rb

  Modified: test/plugin/groonga/test_column_create.rb (+4 -1)
===================================================================
--- test/plugin/groonga/test_column_create.rb    2013-07-22 15:08:22 +0900 (c37cc76)
+++ test/plugin/groonga/test_column_create.rb    2013-07-22 15:09:27 +0900 (7a76d73)
@@ -63,7 +63,10 @@ column_create Books title COLUMN_VECTOR ShortText
         }
         @handler.table_create({"name" => "Books"})
         @handler.column_create(request)
-        assert_equal("table_create Books TABLE_HASH_KEY --key_type ShortText\n#{data[:schema]}", dump)
+        assert_equal(<<-EXPECTED.chomp, dump)
+table_create Books TABLE_HASH_KEY --key_type ShortText
+#{data[:schema]}
+        EXPECTED
       end
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



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