Sha256: b93769a0193ae4de2281d5c95fbf0289572ae5c5321264591c9fec10134fd87c

Contents?: true

Size: 731 Bytes

Versions: 7

Compression:

Stored size: 731 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Function::Connective::Disjunction, '.call' do
  subject { object.call(left, right) }

  let(:object) { described_class }

  context 'when left is true and right is true' do
    let(:left)  { true }
    let(:right) { true }

    it { should be(true) }
  end

  context 'when left is true and right is false' do
    let(:left)  { true  }
    let(:right) { false }

    it { should be(true) }
  end

  context 'when left is false and right is true' do
    let(:left)  { false }
    let(:right) { true  }

    it { should be(true) }
  end

  context 'when left is false and right is false' do
    let(:left)  { false }
    let(:right) { false }

    it { should be(false) }
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/function/connective/disjunction/class_methods/call_spec.rb
axiom-0.1.1 spec/unit/axiom/function/connective/disjunction/class_methods/call_spec.rb
axiom-0.1.0 spec/unit/axiom/function/connective/disjunction/class_methods/call_spec.rb
veritas-0.0.7 spec/unit/veritas/function/connective/disjunction/class_methods/call_spec.rb
veritas-0.0.6 spec/unit/veritas/function/connective/disjunction/class_methods/call_spec.rb
veritas-0.0.5 spec/unit/veritas/function/connective/disjunction/class_methods/call_spec.rb
veritas-0.0.4 spec/unit/veritas/function/connective/disjunction/class_methods/call_spec.rb