Sha256: 32aa9fd8bbfa84c95825fb6e325aa0bb73834ad20d14d1cf36959a2e5b020458

Contents?: true

Size: 633 Bytes

Versions: 1

Compression:

Stored size: 633 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Logic::Proposition.new' do
  let(:object) { Logic::Proposition }

  context 'with true argument' do
    subject { object.new(argument) }

    let(:argument) { true }

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

  context 'with false argument' do
    subject { object.new(argument) }

    let(:argument) { false }

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

  context 'with no arguments' do
    subject { object.new }

    specify { pending { expect { subject }.to raise_error(NotImplementedError, "#{object} is an abstract class") } }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/logic/proposition/class_methods/new_spec.rb