Sha256: 796de61cb80268e2ed9307ac9b1817cff10e60f4d4a6d4af134b0e275aafb663

Contents?: true

Size: 490 Bytes

Versions: 2

Compression:

Stored size: 490 Bytes

Contents

# encoding: utf-8

shared_examples_for 'a unary relation method' do
  let(:gateway) { mock('New Gateway') }

  before do
    described_class.stub!(:new).and_return(gateway)
  end

  it { should equal(gateway) }

  it 'tests the response is a relation' do
    response.should_receive(:kind_of?).with(Axiom::Relation)
    subject
  end

  it 'initializes the new gateway with the adapter and response' do
    described_class.should_receive(:new).with(adapter, response)
    subject
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-arango-adapter-0.0.2 spec/shared/unary_relation_method_behaviour.rb
axiom-arango-adapter-0.0.1 spec/shared/unary_relation_method_behaviour.rb