Sha256: 344b539a2dad8d7bc1a2d0b95b1cf65e8dea7bc524488ee0a84789fd3f50a42d

Contents?: true

Size: 501 Bytes

Versions: 5

Compression:

Stored size: 501 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:operand)  { mock('Operand')                                          }
  let(:header)   { mock('Header')                                           }
  let(:relation) { mock('Relation', :operand => operand, :header => header) }
  let(:object)   { described_class.new(relation)                            }

  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/unchanged_header/optimize_spec.rb
veritas-optimizer-0.0.7 spec/unit/veritas/optimizer/relation/operation/unary/unchanged_header/optimize_spec.rb
veritas-optimizer-0.0.6 spec/unit/veritas/optimizer/relation/operation/unary/unchanged_header/optimize_spec.rb
veritas-optimizer-0.0.5 spec/unit/veritas/optimizer/relation/operation/unary/unchanged_header/optimize_spec.rb
veritas-optimizer-0.0.4 spec/unit/veritas/optimizer/relation/operation/unary/unchanged_header/optimize_spec.rb