Sha256: cb0bd0748eceb1f636e0f0b39750e9d11141a4d083f9d35586f69cfd7caa6c8c
Contents?: true
Size: 490 Bytes
Versions: 2
Compression:
Stored size: 490 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 expect(object).to be_optimizable end it { should be_kind_of(Relation::Materialized) } its(:header) { should be(relation.header) } it { should == [[1]] } end
Version data entries
2 entries across 2 versions & 1 rubygems