Sha256: 103ca3987b3a567930846ee6a134ab08d6fdda0cad9358524926071a642784e5

Contents?: true

Size: 297 Bytes

Versions: 2

Compression:

Stored size: 297 Bytes

Contents

describe WannabeBool::Boolean do
  context TrueClass do
    subject { true }

    describe '#to_b' do
      it { expect(subject.to_b).to eq true }
    end
  end

  context FalseClass do
    subject { false }

    describe '#to_b' do
      it { expect(subject.to_b).to eq false }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wannabe_bool-0.3.0 spec/wannabe_bool/boolean_spec.rb
wannabe_bool-0.2.0 spec/wannabe_bool/boolean_spec.rb