Sha256: 349b5c977b12a0681afb49dffeb0a8c1cdffb8ac375fe738bb264423faed69db

Contents?: true

Size: 541 Bytes

Versions: 2

Compression:

Stored size: 541 Bytes

Contents

require 'rspec'
require_relative 'require_spec'
require 'dm-core/spec/setup'

# 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

if %w(postgres mysql sqlite oracle sqlserver).include?(ENV['ADAPTER'])
  describe "require 'dm-transactions after calling DataMapper.setup" do
    before(:all) do
      @adapter = DataMapper::Spec.adapter
      require 'dm-transactions'
    end

    it_behaves_like "require 'dm-transactions'"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sbf-dm-transactions-1.3.0 spec/isolated/require_after_setup_spec.rb
sbf-dm-transactions-1.3.0.beta spec/isolated/require_after_setup_spec.rb