Sha256: e38cd2b0f32c1a2b9252510a310fa3c22246fdaf460dbcb4d0156eb8f867d49f

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'

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

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

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

    it { should be(true) }
  end

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

    it { should be(true) }
  end

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

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