Sha256: 96ad503917360fdb3a311b18381f265ba7f56c50b4b63b056c32b496bef802f5
Contents?: true
Size: 609 Bytes
Versions: 2
Compression:
Stored size: 609 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Materialized, '#optimize' do subject { object.optimize } let(:object) { described_class.new([[:id, Integer]], body) } context 'with an empty Array' do let(:body) { [] } it { should eql(Relation::Empty.new(object.header)) } it 'returns an equivalent object to the unoptimized operation' do should == object end it_should_behave_like 'an optimize method' end context 'with an nonempty Array' do let(:body) { [[1]] } it { should be(object) } it_should_behave_like 'an optimize method' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.2.0 | spec/integration/axiom/relation/materialized/optimize_spec.rb |
axiom-optimizer-0.1.1 | spec/integration/axiom/relation/materialized/optimize_spec.rb |