Sha256: 01986ccb882b81012188c957bc86601d52d7fe252a79348edc826ab72206ad6d

Contents?: true

Size: 535 Bytes

Versions: 2

Compression:

Stored size: 535 Bytes

Contents

shared_examples_for "require 'dm-transactions'" do

  %w[Repository Model Resource].each do |name|
    it "should include the transaction api in DataMapper::#{name}" do
      (DataMapper.const_get(name) < DataMapper::Transaction.const_get(name)).should be_true
    end
  end

  it "should include the transaction api into the adapter" do
    @adapter.respond_to?(:push_transaction   ).should be_true
    @adapter.respond_to?(:pop_transaction    ).should be_true
    @adapter.respond_to?(:current_transaction).should be_true
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dm-transactions-1.0.0.rc2 spec/isolated/require_spec.rb
dm-transactions-1.0.0.rc1 spec/isolated/require_spec.rb