Sha256: e21b2027ec4afa0637bb5fc473c6cc34586f2213220857bf7d3b82de0e381072

Contents?: true

Size: 682 Bytes

Versions: 5

Compression:

Stored size: 682 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:described_class) { Class.new(Optimizer::Relation::Operation::Unary)         }
  let(:optimized)       { mock('Optimized')                                        }
  let(:operand)         { mock('Operand', :optimize => optimized)                  }
  let(:header)          { mock('Header')                                           }
  let(:relation)        { mock('Relation', :operand => operand, :header => header) }
  let(:object)          { described_class.new(relation)                            }

  it { should equal(optimized) }
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/operand_spec.rb
veritas-optimizer-0.0.7 spec/unit/veritas/optimizer/relation/operation/unary/operand_spec.rb
veritas-optimizer-0.0.6 spec/unit/veritas/optimizer/relation/operation/unary/operand_spec.rb
veritas-optimizer-0.0.5 spec/unit/veritas/optimizer/relation/operation/unary/operand_spec.rb
veritas-optimizer-0.0.4 spec/unit/veritas/optimizer/relation/operation/unary/operand_spec.rb