Sha256: 3dc79b43d0d5b548b86e25ddd8d56a386467e81264a2b33be9b13fd5bd2924c1
Contents?: true
Size: 644 Bytes
Versions: 1
Compression:
Stored size: 644 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'axiom/relation/gateway' describe Relation::Gateway, '#remove' do subject { object.remove(args) } let(:adapter) { double('Adapter') } let(:relation) { double('Relation', remove: response) } let(:response) { double('New Relation', :kind_of? => true) } let!(:object) { described_class.new(adapter, relation) } let(:args) { double } it_should_behave_like 'a unary relation method' it 'forwards the arguments to relation#remove' do expect(relation).to receive(:remove).with(args) subject end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-do-adapter-0.2.0 | spec/unit/axiom/relation/gateway/remove_spec.rb |