[Groonga-commit] ranguba/groonga-client-model at 75ff9ee [master] migration test: add a test for redo case

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 7 16:00:34 JST 2017


Kouhei Sutou	2017-03-07 16:00:34 +0900 (Tue, 07 Mar 2017)

  New Revision: 75ff9ee25f3fc17e4fb9a5c12e278e112ddb7e86
  https://github.com/ranguba/groonga-client-model/commit/75ff9ee25f3fc17e4fb9a5c12e278e112ddb7e86

  Message:
    migration test: add a test for redo case

  Modified files:
    test/unit/test_migrator.rb

  Modified: test/unit/test_migrator.rb (+13 -0)
===================================================================
--- test/unit/test_migrator.rb    2017-03-07 15:48:22 +0900 (12e566b)
+++ test/unit/test_migrator.rb    2017-03-07 16:00:34 +0900 (7cf5001)
@@ -121,5 +121,18 @@ class TestMigrator < Test::Unit::TestCase
                    ],
                    migrator.each.collect(&:version))
     end
+
+    test("redo") do
+      migrator = create_migrator.migrate
+
+      migrator = create_migrator
+      migrator.step = -1
+      migrator.migrate
+      migrator.step = 1
+      assert_equal([
+                     20170303115135,
+                   ],
+                   migrator.each.collect(&:version))
+    end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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