about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2014-05-27 21:07:26 +0000
committerEric Wong <normalperson@yhbt.net>2014-05-27 21:07:26 +0000
commit5b3e53b6d103b03460a9a72b86c139a42e7cfdf2 (patch)
tree2e934f80aaf3c1379d20fdaf739f2f591ccb9f70
parent21dbd8fcff6e071e50f04be9b26cada458cd9e87 (diff)
downloadomgf-5b3e53b6d103b03460a9a72b86c139a42e7cfdf2.tar.gz
test_regurgitator: update for sequel 4.x
This still works with 3.x.
-rw-r--r--test/test_regurgitator.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_regurgitator.rb b/test/test_regurgitator.rb
index 950f354..f51e3ab 100644
--- a/test/test_regurgitator.rb
+++ b/test/test_regurgitator.rb
@@ -6,7 +6,7 @@ require 'open-uri'
 require 'omgf/hysterical_raisins'
 require 'digest/md5'
 require 'sequel' # regurgitator uses sequel
-Sequel.extension :migration, :schema_dumper
+Sequel.extension :migration
 
 class TestRegurgitator < Test::Unit::TestCase
   include TestMogileFSIntegration
@@ -19,6 +19,8 @@ class TestRegurgitator < Test::Unit::TestCase
     @opts = { "rack.logger" => logger }
     @orig_db = Sequel.connect("sqlite://#{@dbname.path}")
     @mirror_db = Sequel.connect("sqlite://#{@mirror.path}")
+    @orig_db.extension(:schema_dumper)
+
     mig = @orig_db.dump_schema_migration(:indexes => false, :same_db => true)
     mig = eval(mig)
     mig.apply(@mirror_db, :up)