Sha256: adbd041083fbe156d2c10d5c4782222a37598be9508c825b22e70f2b53aed8b4
Contents?: true
Size: 548 Bytes
Versions: 7
Compression:
Stored size: 548 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Function::Predicate::GreaterThan, '.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(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
7 entries across 7 versions & 2 rubygems