<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -25,6 +25,18 @@ class MigrationsTest &lt; Test::Unit::TestCase
     assert table_exists?('tests')
     assert table_exists?('others')
   end
+  
+  def test_engine_migrations_can_upgrade_incrementally
+    Engines.plugins[:test_migration].migrate(1)
+    assert table_exists?('tests')
+    assert !table_exists?('others')
+    assert_equal 1, Engines::Plugin::Migrator.current_version(Engines.plugins[:test_migration])
+    
+    
+    Engines.plugins[:test_migration].migrate(2)
+    assert table_exists?('others')
+    assert_equal 2, Engines::Plugin::Migrator.current_version(Engines.plugins[:test_migration])
+  end
     
   def test_generator_creates_plugin_migration_file
     Rails::Generator::Scripts::Generate.new.run(['plugin_migration', 'test_migration'], :quiet =&gt; true)</diff>
      <filename>test/unit/migration_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f52b0ae9c237c19bcdd19402c45a56c65f7c75bd</id>
    </parent>
  </parents>
  <author>
    <name>James Adam</name>
    <email>james@lazyatom.com</email>
  </author>
  <url>http://github.com/lazyatom/engines/commit/ec608c0d53144646609925023cb6108fe5a53458</url>
  <id>ec608c0d53144646609925023cb6108fe5a53458</id>
  <committed-date>2008-06-06T08:31:01-07:00</committed-date>
  <authored-date>2008-06-06T08:31:01-07:00</authored-date>
  <message>Added a test for incremental migration, to try and capture the issue described by [#17], but without joy.</message>
  <tree>a2373d61d22fb120373bc18679d45f7ac85d0da8</tree>
  <committer>
    <name>James Adam</name>
    <email>james@lazyatom.com</email>
  </committer>
</commit>
