Sha256: bccbf0c10c3fa4df1c3f55db76b7e9f342442aa782e935a47d9608e86f4ed6d6

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Logic::Predicate::GreaterThan#inverse' do
  subject { greater_than.inverse }

  let(:attribute)    { Attribute::Integer.new(:id) }
  let(:greater_than) { attribute.gt(1)             }

  it { should eql(attribute.lte(1)) }

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

  it_should_behave_like 'an idempotent method'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.1 spec/unit/veritas/logic/predicate/greater_than/inverse_spec.rb