Sha256: 06974745eeb863d7f562503b245f84c136843ae0a8fbb678b8de83d09e63ff2c

Contents?: true

Size: 543 Bytes

Versions: 6

Compression:

Stored size: 543 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation::Operation::Order::Ascending, '.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/ascending/class_methods/call_spec.rb
axiom-0.1.0 spec/unit/axiom/relation/operation/order/ascending/class_methods/call_spec.rb
veritas-0.0.7 spec/unit/veritas/relation/operation/order/ascending/class_methods/call_spec.rb
veritas-0.0.6 spec/unit/veritas/relation/operation/order/ascending/class_methods/call_spec.rb
veritas-0.0.5 spec/unit/veritas/relation/operation/order/ascending/class_methods/call_spec.rb
veritas-0.0.4 spec/unit/veritas/relation/operation/order/ascending/class_methods/call_spec.rb