Sha256: d6263ce142ebf6fdf38e29494ca42ba6055f58cca19e8be0a8cae6fae164640c

Contents?: true

Size: 427 Bytes

Versions: 5

Compression:

Stored size: 427 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Optimizer::Relation::Operation::Unary::EmptyOperand, '#optimize' do
  subject { object.optimize }

  let(:operand)  { Relation::Empty.new([ [ :id, Integer ] ]) }
  let(:relation) { operand.rename({})                        }
  let(:object)   { described_class.new(relation)             }

  before do
    object.should be_optimizable
  end

  it { should equal(operand) }
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
axiom-optimizer-0.1.0 spec/unit/axiom/optimizer/relation/operation/unary/empty_operand/optimize_spec.rb
veritas-optimizer-0.0.7 spec/unit/veritas/optimizer/relation/operation/unary/empty_operand/optimize_spec.rb
veritas-optimizer-0.0.6 spec/unit/veritas/optimizer/relation/operation/unary/empty_operand/optimize_spec.rb
veritas-optimizer-0.0.5 spec/unit/veritas/optimizer/relation/operation/unary/empty_operand/optimize_spec.rb
veritas-optimizer-0.0.4 spec/unit/veritas/optimizer/relation/operation/unary/empty_operand/optimize_spec.rb