Sha256: 3c6661a1f00ff63f9f3afe2e78145bfb21d166bea27bd49570d0298bca63801b
Contents?: true
Size: 602 Bytes
Versions: 2
Compression:
Stored size: 602 Bytes
Contents
RSpec.describe WannabeBool::InvalidValueBehaviour do context 'False' do describe '#call' do subject { WannabeBool::InvalidValueBehaviour::False.call } it { is_expected.to be false } end end context 'Nil' do describe '#call' do subject { WannabeBool::InvalidValueBehaviour::Nil.call } it { is_expected.to be nil } end end context 'Error' do describe '#call' do subject { WannabeBool::InvalidValueBehaviour::Error.call } it { expect { subject }.to raise_error(ArgumentError, 'is not a valid boolean representation') } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wannabe_bool-0.7.0 | spec/wannabe_bool/invalid_value_behaviour_spec.rb |
wannabe_bool-0.6.0 | spec/wannabe_bool/invalid_value_behaviour_spec.rb |