Sha256: e8100a0803d238386767bf6b368dc172b3cf65544a85a55475c26f082f98bcfb
Contents?: true
Size: 522 Bytes
Versions: 3
Compression:
Stored size: 522 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Rename::EmptyOperand, '#optimize' do subject { object.optimize } let(:operand) { Relation::Empty.new([ [ :id, Integer ] ]) } let(:relation) { operand.rename(:id => :other_id) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Relation::Empty) } its(:header) { should equal(relation.header) } its(:tuples) { should equal(relation) } end
Version data entries
3 entries across 3 versions & 2 rubygems