Sha256: 8b91a1b0b17a326fa86179baee95025b43d1cfa259c69f6779ddd0b2adb57a1f
Contents?: true
Size: 513 Bytes
Versions: 5
Compression:
Stored size: 513 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Unary::MaterializedOperand, '#optimize' do subject { object.optimize } let(:relation) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ]).project([ :id ]) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Relation::Materialized) } its(:header) { should equal(relation.header) } it { should == [ [ 1 ] ] } end
Version data entries
5 entries across 5 versions & 2 rubygems