Sha256: 6001fbb0893ae580eafeff9dbd044aace036130553d73cecc49a1545f0000537
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require 'spec_helper' Rails::Migration::Assist.orm = :active_record describe 'migration' do # use_orm :active_record use_helpers :app, :migration before :each do remove_migration :create_account create_migration :create_account do %q{ def self.up end def self.down 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) puts migration_file_name :create_account root_dir.should have_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 |
---|---|
rails-app-spec-0.2.0 | spec/rails_app_spec/matchers/artifact/migration_spec.rb |