Sha256: f0d7ef07a6ae5d43913b3fc5cd9774185c267ecb85f305b8e4ba25cc375ffb32

Contents?: true

Size: 427 Bytes

Versions: 15

Compression:

Stored size: 427 Bytes

Contents

require 'spec_helper'
class Predicate
  describe Predicate, "|" do

    let(:left) { Predicate.coerce(x: 2) }

    subject{ left | right }

    before do
      subject.should be_a(Predicate)
    end

    context 'with itself' do
      let(:right){ left }

      it{ should be(left) }
    end

    context 'with the same expression' do
      let(:right){ Predicate.coerce(x: 2) }

      it{ should be(left) }
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
predicate-2.8.0 spec/predicate/test_bool_or.rb
predicate-2.7.1 spec/predicate/test_bool_or.rb
predicate-2.7.0 spec/predicate/test_bool_or.rb
predicate-2.6.0 spec/predicate/test_bool_or.rb
predicate-2.5.0 spec/predicate/test_bool_or.rb
predicate-2.4.0 spec/predicate/test_bool_or.rb
predicate-2.3.3 spec/predicate/test_bool_or.rb
predicate-2.3.2 spec/predicate/test_bool_or.rb
predicate-2.3.1 spec/predicate/test_bool_or.rb
predicate-2.3.0 spec/predicate/test_bool_or.rb
predicate-2.2.1 spec/predicate/test_bool_or.rb
predicate-2.2.0 spec/predicate/test_bool_or.rb
predicate-2.1.0 spec/predicate/test_bool_or.rb
predicate-2.0.1 spec/predicate/test_bool_or.rb
predicate-2.0.0 spec/predicate/test_bool_or.rb