Sha256: 32ce9f4f5dce529caa9751ddbb3f24dd19aaafdf3a4ea7fc78f83bb8fe017863

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 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

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/function/predicate/inclusion/class_methods/call_spec.rb