Sha256: 8dc3c8975268dd83fa1b1140f87db94772a56f15c1bd42e4f9f8f10bbba0dce4
Contents?: true
Size: 587 Bytes
Versions: 1
Compression:
Stored size: 587 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'axiom/relation/gateway' describe Relation::Gateway, '#optimize' do subject { object.optimize } let(:adapter) { double } let(:relation) { double('Relation') } let(:object) { described_class.new(adapter, relation) } before do allow(relation).to receive(:optimize).and_return(relation) end it_should_behave_like 'a command method' it 'forwards the message to relation#optimize' do expect(relation).to receive(:optimize).with(no_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/optimize_spec.rb |