Sha256: cc1e8e1dedc31e8b915b826fddc5e2e295ae285b0d8565d81efd4b354b44e1c7

Contents?: true

Size: 545 Bytes

Versions: 7

Compression:

Stored size: 545 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:object) { described_class }

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

    it { should be(false) }
  end

  context 'when left is greater than right' do
    let(:left)  { 2 }
    let(:right) { 1 }

    it { should be(false) }
  end

  context 'when left is less than right' do
    let(:left)  { 1 }
    let(:right) { 2 }

    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/less_than/class_methods/call_spec.rb
axiom-0.1.1 spec/unit/axiom/function/predicate/less_than/class_methods/call_spec.rb
axiom-0.1.0 spec/unit/axiom/function/predicate/less_than/class_methods/call_spec.rb
veritas-0.0.7 spec/unit/veritas/function/predicate/less_than/class_methods/call_spec.rb
veritas-0.0.6 spec/unit/veritas/function/predicate/less_than/class_methods/call_spec.rb
veritas-0.0.5 spec/unit/veritas/function/predicate/less_than/class_methods/call_spec.rb
veritas-0.0.4 spec/unit/veritas/function/predicate/less_than/class_methods/call_spec.rb