Sha256: 53289a3b8a47e80f319cccadd6ce18028a36cc6e10c4ee3cabc4640c36e5d3f7

Contents?: true

Size: 623 Bytes

Versions: 2

Compression:

Stored size: 623 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Optimizer::Function::Connective::Binary, '#right' do
  subject { object.right }

  let(:optimized_left)  { double('Optimized Left')                       }
  let(:optimized_right) { double('Optimized Right')                      }
  let(:left)            { double('Left', optimize: optimized_left)       }
  let(:right)           { double('Right', optimize: optimized_right)     }
  let(:connective)      { double('Connective', left: left, right: right) }
  let(:object)          { described_class.new(connective)                }

  it { should be(optimized_right) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-optimizer-0.2.0 spec/unit/axiom/optimizer/function/connective/binary/right_spec.rb
axiom-optimizer-0.1.1 spec/unit/axiom/optimizer/function/connective/binary/right_spec.rb