Sha256: 2abb7ca4c2bb14b1ec0b78d8a101c5874904228855946bd02eeec5d6f35442ca
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 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 expect(described_class).to 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.2.0 | spec/integration/axiom/relation/optimize_spec.rb |