Sha256: 83b332930c6dc35db7ede4eb7a7794ec321d1091ec1686630fe5ac2a9cc10f6a

Contents?: true

Size: 498 Bytes

Versions: 3

Compression:

Stored size: 498 Bytes

Contents

$LOAD_PATH << File.dirname(__FILE__)

require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper'

describe 'A Persevere adapter' do

  before do
    @adapter = DataMapper::Repository.adapters[:default]
  end
  
  describe 'when saving a resource' do

    before do
      @book = Book.new(:title => 'Hello, World!', :author => 'Anonymous')
    end

    it 'should call the adapter create method' do
      #@adapter.should_receive(:create).with([@book])
      @book.save
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dm-persevere-adapter-0.17.0 spec/unit/create_spec.rb
dm-persevere-adapter-0.16.0 spec/unit/create_spec.rb
dm-persevere-adapter-0.13.0 spec/unit/create_spec.rb