Sha256: 68873151e87392cc65b2fc6f77d30ee78d1bd6d07280e050e1b0e95291fde2b8

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 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 idempotent method'

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

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

  its(:right) { should == 1 }

  it 'is invertible' do
    subject.inverse.should equal(object)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.4 spec/unit/veritas/function/predicate/less_than/inverse_spec.rb