Sha256: 3a744cf1a540999995aff015d3d646f571422dd8a6012f240f7c5324c47a4e1e

Contents?: true

Size: 707 Bytes

Versions: 14

Compression:

Stored size: 707 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "spec_helper" )

describe Mole::Db::Migrate do     
  before( :all ) do        
    ::Mole.reset_configuration!
    ::Mole.initialize( :moleable => true )
    @config = ::File.expand_path( ::File.join(::File.dirname(__FILE__), %w[.. .. config database.yml] ) )
  end
                                 
  it "migrates down correctly" do
    mgt = Mole::Db::Migrate.new( OpenStruct.new( :direction => :down, :configuration => @config, :environment => 'test' ) )
    mgt.apply
  end

  it "migrates up correctly" do
    mgt = Mole::Db::Migrate.new( OpenStruct.new( :direction => :up, :configuration => @config, :environment => 'test' ) )
    mgt.apply
  end  
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
derailed-mole-1.0.10 spec/db/migrate_spec.rb
mole-1.0.1 spec/db/migrate_spec.rb
mole-0.0.1 spec/db/migrate_spec.rb
mole-1.0.0 spec/db/migrate_spec.rb
mole-1.0.12 spec/db/migrate_spec.rb
mole-1.0.11 spec/db/migrate_spec.rb
mole-1.0.2 spec/db/migrate_spec.rb
mole-1.0.3 spec/db/migrate_spec.rb
mole-1.0.4 spec/db/migrate_spec.rb
mole-1.0.5 spec/db/migrate_spec.rb
mole-1.0.6 spec/db/migrate_spec.rb
mole-1.0.7 spec/db/migrate_spec.rb
mole-1.0.9 spec/db/migrate_spec.rb
mole-1.0.8 spec/db/migrate_spec.rb