Sha256: 512a3b7993f437dc65b16eeda04160ddbe0efd0c6f47e3c5b6cbc6d9e4100ada
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
# frozen_string_literal: true RSpec.describe WannabeBool::Boolean do context TrueClass do subject { true } describe '#to_b' do it { expect(subject.to_b).to be true } end describe '#to_bool' do it { expect(subject.to_bool).to be true } end describe '#to_boolean' do it { expect(subject.to_boolean).to be true } end end context FalseClass do subject { false } describe '#to_b' do it { expect(subject.to_b).to be false } end describe '#to_bool' do it { expect(subject.to_bool).to be false } end describe '#to_boolean' do it { expect(subject.to_boolean).to be false } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wannabe_bool-0.7.1 | spec/wannabe_bool/boolean_spec.rb |