Sha256: ca192b3ff3eb799e494add0a1c2685052ee0106c6960066d82321595ea1b2900
Contents?: true
Size: 946 Bytes
Versions: 1
Compression:
Stored size: 946 Bytes
Contents
require 'spec_helper' describe 'migration' do use_helpers :app, :migration before :each do remove_migration :create_account create_migration :create_account do %q{ def index end } end end after :each do # remove_migration :create_account end it "should have an create_account_migration file that contains an index method and two inserted comments" do insert_into_migration :create_account, :content => '# hello' insert_into_migration :create_account do '# goodbye' end read_migration(:create_account).should have_comment 'hello' puts read_migration(:create_account) # root_dir.should have_migration :create_account do |migration_file| # migration_file.should have_method :index # migration_file.should have_comment 'hello' # migration_file.should have_comment 'goodbye' # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails3_assist-0.2.2 | spec/rails3_assist/artifact/migration/migration_spec.rb |