Sha256: aab9838c033f6f51371f28973288f56232a17d5aa0d39d61045e7523cd35c683
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation, '#optimize' do subject { object.optimize(*args) } let(:object) { described_class.new([[:id, Integer]], LazyEnumerable.new([[1]])) } let(:args) { [] } before do expect(object).to be_instance_of(described_class) end it 'calls self.class.optimizer' do described_class.should_receive(:optimizer).and_return(nil) subject end it { should be(object) } it_should_behave_like 'an optimize method' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.1.1 | spec/integration/axiom/relation/optimize_spec.rb |