Sha256: 3dfe41342d4d5adc92217a9491e85bd5c115874d17e8b0fe51099288ebc1afff

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Logic::Predicate::Exclusion.call' do
  subject { object.call(left, right) }

  let(:object) { Logic::Predicate::Exclusion }

  context 'when left is excluded from right' do
    let(:left)  { 1     }
    let(:right) { [ 0 ] }

    it { should be(true) }
  end

  context 'when left is not excluded from right' do
    let(:left)  { 1     }
    let(:right) { [ 1 ] }

    it { should be(false) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/logic/predicate/exclusion/class_methods/call_spec.rb