Sha256: f20919b1c7fae753cb32ead8830261402b1cf5fdb7b5d0bc3a58c59eda80fb0a
Contents?: true
Size: 541 Bytes
Versions: 12
Compression:
Stored size: 541 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
12 entries across 12 versions & 2 rubygems