Sha256: 9ac335d37ceb5b02f24fe880d82bededed250d20ce968a0d89c8fb545ebabde4

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Logic::Proposition::True#inverse' do
  subject { object.inverse }

  let(:klass)  { Logic::Proposition::True }
  let(:object) { klass.instance           }

  it_should_behave_like 'an idempotent method'

  it { should equal(Logic::Proposition::False.instance) }

  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.2 spec/unit/veritas/logic/proposition/true/inverse_spec.rb