Sha256: 955d84c80e420dc5225ab7d986855f7232c375a2e3bb40261df5ee9b8642d61f
Contents?: true
Size: 760 Bytes
Versions: 1
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true RSpec.describe WannabeBool::Aliasing do class FakeAliasing # Fake class does not implement #to_b method. include WannabeBool::Aliasing end context 'when #to_b is not available in included class' do subject { FakeAliasing.new } describe '#to_b' do it 'raises NotImplementedError' do expect { subject.to_b }.to raise_error(NotImplementedError) end end describe '#to_bool' do it 'raises NotImplementedError' do expect { subject.to_bool }.to raise_error(NotImplementedError) end end describe '#to_boolean' do it 'raises NotImplementedError' do expect { subject.to_boolean }.to raise_error(NotImplementedError) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wannabe_bool-0.7.1 | spec/wannabe_bool/aliasing_spec.rb |