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