Sha256: f12ee4b9fb86cd2f049e5d1191c76ef0f963854860ebd6df61dd175887378759

Contents?: true

Size: 501 Bytes

Versions: 2

Compression:

Stored size: 501 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Optimizer::Relation::Operation::Binary, '#right' do
  subject { object.right }

  let(:optimized) { double('Optimized')                          }
  let(:left)      { double('Left')                               }
  let(:right)     { double('Right', optimize: optimized)         }
  let(:relation)  { double('Relation', left: left, right: right) }
  let(:object)    { described_class.new(relation)                }

  it { should be(optimized) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-optimizer-0.2.0 spec/unit/axiom/optimizer/relation/operation/binary/right_spec.rb
axiom-optimizer-0.1.1 spec/unit/axiom/optimizer/relation/operation/binary/right_spec.rb