Sha256: 80b2dfc5e1dd43ec4447e880794687693893294c7a52482be5dacbb185c63db3
Contents?: true
Size: 555 Bytes
Versions: 1
Compression:
Stored size: 555 Bytes
Contents
require 'spec_helper' describe 'Veritas::Relation::Operation::Order::Descending.call' do subject { object.call(left, right) } let(:object) { Relation::Operation::Order::Descending } 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/relation/operation/order/descending/class_methods/call_spec.rb |