Sha256: 171fb8f5f5de6ddefcd98bbf76c14392d785ff69dacf458b9876124ad279ba25

Contents?: true

Size: 813 Bytes

Versions: 24

Compression:

Stored size: 813 Bytes

Contents

require File.dirname(__FILE__) + "/extension_generators_spec_helper"

describe "ExtensionMigrationGenerator with normal options" do
  it_should_behave_like AllGenerators
  it_should_behave_like AllExtensionGenerators
  
  before(:each) do
    cp_r File.join(BASE_ROOT, 'lib/generators/extension_migration'),  File.join(RADIANT_ROOT, 'vendor/generators')
    run_generator('extension_migration', %w(example ChangeColumnsInSomeTable))
  end
  
  it 'should generate the migration file in the correct location' do
    'vendor/extensions/example'.should have_generated_migration('ChangeColumnsInSomeTable')
  end
  
  after(:each) do
    extension_dir = File.join(RADIANT_ROOT, 'vendor/extensions/example')
    rm_rf Dir["#{extension_dir}/db/migrate/*"]
    rm_rf Dir["#{RADIANT_ROOT}/vendor/generators/*"]
  end
end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
radiant-rails3-0.1 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.2.4 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.2.2 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.2.1 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.2 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.1.9 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.1.8 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.1.7 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.1.6 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.1.5 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.1.4 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.1.3 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.1.2 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.1.1 spec/generators/extension_migration_generator_spec.rb
radiantcms-couchrest_model-0.1 spec/generators/extension_migration_generator_spec.rb
radiant-0.7.2 spec/generators/extension_migration_generator_spec.rb
radiant-0.9.1 spec/generators/extension_migration_generator_spec.rb
radiant-0.8.2 spec/generators/extension_migration_generator_spec.rb
radiant-0.9.0.rc2 spec/generators/extension_migration_generator_spec.rb
radiant-rc-0.9.0 spec/generators/extension_migration_generator_spec.rb