Sha256: 9c7d2accc09de39d75a894eba6322eb41bffa2dc8daed736b435c989004aaf7c

Contents?: true

Size: 437 Bytes

Versions: 7

Compression:

Stored size: 437 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:object) { described_class }

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

    it { should be(false) }
  end

  context 'when left is not equal to right' do
    let(:left)  { true  }
    let(:right) { false }

    it { should be(true) }
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

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