Sha256: cd45d4c7c5885f11c5c1bbde28d8d08c49a331fb87d982dcef4ef13b2637ae4e

Contents?: true

Size: 731 Bytes

Versions: 2

Compression:

Stored size: 731 Bytes

Contents

require 'spec'
require 'isolated/require_spec'
require 'dm-core/spec/setup'
require 'dm-core/spec/lib/adapter_helpers'

# To really test this behavior, this spec needs to be run in isolation and not
# as part of the typical rake spec run, which requires dm-transactions upfront

describe "require 'dm-migrations' after calling DataMapper.setup" do
  extend DataMapper::Spec::Adapters::Helpers

  before(:all) do

    @adapter = DataMapper::Spec.adapter
    require 'dm-migrations'

    class ::Person
      include DataMapper::Resource
      property :id, Serial
    end

    @model   = Person

  end

  supported_by :postgres, :mysql, :sqlite, :oracle, :sqlserver do
    it_should_behave_like "require 'dm-migrations'"
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dm-migrations-1.0.0.rc2 spec/isolated/require_after_setup_spec.rb
dm-migrations-1.0.0.rc1 spec/isolated/require_after_setup_spec.rb