Sha256: 323a6207612f8b20b73da7c370ecabdb0a6b8310a4c0ff7ff5ffab6fca474ca5

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:object) { described_class }

  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

5 entries across 5 versions & 2 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/function/predicate/inclusion/class_methods/call_spec.rb
veritas-0.0.7 spec/unit/veritas/function/predicate/inclusion/class_methods/call_spec.rb
veritas-0.0.6 spec/unit/veritas/function/predicate/inclusion/class_methods/call_spec.rb
veritas-0.0.5 spec/unit/veritas/function/predicate/inclusion/class_methods/call_spec.rb
veritas-0.0.4 spec/unit/veritas/function/predicate/inclusion/class_methods/call_spec.rb