Sha256: 2dbfdafe6db0c7e93ee6646d0444a971b2d7a4e98e716d87777af6275f74db13

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

require 'spec_helper'

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

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

  context 'when left is included in right' do
    let(:left)  { 1     }
    let(:right) { [ 1 ] }

    it { should be(true) }
  end

  context 'when left is not included in right' do
    let(:left)  { 1     }
    let(:right) { [ 0 ] }

    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/inclusion/class_methods/call_spec.rb