Sha256: 453bd2a442bc0f88254d8d06d68829256b0a620380790b0a980ca6386bd575dc
Contents?: true
Size: 664 Bytes
Versions: 4
Compression:
Stored size: 664 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Function::Proposition, '.new' do let(:object) { described_class } context 'with true argument' do subject { object.new(argument) } let(:argument) { true } it { should equal(Function::Proposition::Tautology.instance) } end context 'with false argument' do subject { object.new(argument) } let(:argument) { false } it { should equal(Function::Proposition::Contradiction.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
4 entries across 4 versions & 1 rubygems