Renamed helpers to correspond to renamed Controller classes.
[merb_radiant.git] / radiant_specs / spec / lib / radiant / .svn / text-base / extension_migrator_spec.rb.svn-base
bloba6b1ef36372eb8a16df1071b8e31da05f8f89364
1 require File.dirname(__FILE__) + '/../../spec_helper'
3 describe Radiant::ExtensionMigrator do
4   
5   class Person < ActiveRecord::Base; end
6   class Place < ActiveRecord::Base; end
7   
8   it 'should migrate successfully' do
9     ActiveRecord::Migration.suppress_messages do
10       BasicExtension.migrator.migrate
11     end
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
15   end
16   
17 end