Sha256: 32e50825194423d0849b3ea8eee8369c6ba12ebe6da2a59f0dbfcb81226f97a4

Contents?: true

Size: 544 Bytes

Versions: 6

Compression:

Stored size: 544 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation::Operation::Order::Descending, '.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(0) }
  end

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

    it { should be(-1) }
  end

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

    it { should be(1) }
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/relation/operation/order/descending/class_methods/call_spec.rb
axiom-0.1.0 spec/unit/axiom/relation/operation/order/descending/class_methods/call_spec.rb
veritas-0.0.7 spec/unit/veritas/relation/operation/order/descending/class_methods/call_spec.rb
veritas-0.0.6 spec/unit/veritas/relation/operation/order/descending/class_methods/call_spec.rb
veritas-0.0.5 spec/unit/veritas/relation/operation/order/descending/class_methods/call_spec.rb
veritas-0.0.4 spec/unit/veritas/relation/operation/order/descending/class_methods/call_spec.rb