Sha256: 3e7834caf603e5f0e2a700b35127cd570eaf0845542a7e7dc3024c58cbc9d44b

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Function::Predicate::LessThan, '#inverse' do
  subject { object.inverse }

  let(:attribute) { Attribute::Integer.new(:id)       }
  let(:object)    { described_class.new(attribute, 1) }

  it_should_behave_like 'an invertible method'

  it { should be_instance_of(Function::Predicate::GreaterThanOrEqualTo) }

  its(:left) { should equal(attribute) }

  its(:right) { should == 1 }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/function/predicate/less_than/inverse_spec.rb