1 require File.dirname(__FILE__) + '/../../spec_helper'
3 describe Radiant::ExtensionMigrator do
5 class Person < ActiveRecord::Base; end
6 class Place < ActiveRecord::Base; end
8 it 'should migrate successfully' do
9 ActiveRecord::Migration.suppress_messages do
10 BasicExtension.migrator.migrate
12 BasicExtension.migrator.current_version.should == 2
13 lambda { Person.find(:all) }.should_not raise_error
14 lambda { Place.find(:all) }.should_not raise_error