Sha256: fe2eefde1dbac379f6e0c361f6338c65cff2adf3e0bdd72a04980858ae568a9b

Contents?: true

Size: 471 Bytes

Versions: 5

Compression:

Stored size: 471 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class ExtensionMigratorTest < Test::Unit::TestCase
  
  class Person < ActiveRecord::Base; end
  class Place < ActiveRecord::Base; end
  
  def test_migrate
    ActiveRecord::Migration.suppress_messages do
      BasicExtension.migrator.migrate
    end
    assert_equal(2, BasicExtension.migrator.current_version)
    assert_nothing_raised { Person.find(:all) }
    assert_nothing_raised { Place.find(:all) }
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
radiant-0.6.0 test/unit/extension_migrator_test.rb
radiant-0.6.1 test/unit/extension_migrator_test.rb
radiant-0.6.2 test/unit/extension_migrator_test.rb
radiant-0.6.3 test/unit/extension_migrator_test.rb
radiant-0.6.4 test/unit/extension_migrator_test.rb