Sha256: 555af5e1c1b1854d8ab3c2b5d33f52fdcabf5f6a9dfff83d311d438534680fb3
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
# encoding: utf-8 describe WannabeBool::Integer do context Integer do describe '#to_b' do context 'when value is 0' do subject { 0 } it { expect(subject.to_b).to eq false } end context 'when value is 1' do subject { 1 } it { expect(subject.to_b).to eq true } end (2..9).each do |value| context "when value is #{value}" do subject { value } it { expect(subject.to_b).to eq false } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wannabe_bool-0.1.1 | spec/wannabe_bool/integer_spec.rb |
wannabe_bool-0.1.0 | spec/wannabe_bool/integer_spec.rb |