Sha256: 2db224d1e7c88453346e001b69ba69570440ca8e811f397bccbbe04a0783efbc

Contents?: true

Size: 483 Bytes

Versions: 4

Compression:

Stored size: 483 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(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

4 entries across 4 versions & 2 rubygems

Version Path
axiom-do-adapter-0.1.0 spec/shared/unary_relation_method_behaviour.rb
veritas-do-adapter-0.0.7 spec/shared/unary_relation_method_behaviour.rb
veritas-do-adapter-0.0.6 spec/shared/unary_relation_method_behaviour.rb
veritas-do-adapter-0.0.5 spec/shared/unary_relation_method_behaviour.rb