Sha256: c1c595689e8cdff42d2b503f809106a194a811aaae8f764a474de53f1d29e476
Contents?: true
Size: 460 Bytes
Versions: 14
Compression:
Stored size: 460 Bytes
Contents
require 'fedux_org/stdlib/logic_converters/y_n_converter' describe FeduxOrg::Stdlib::LogicConverters::YNConverter do let( :converter ) { FeduxOrg::Stdlib::LogicConverters::YNConverter.new } context '#parse' do it 'converts true to on' do result = converter.parse( true ) expect( result ).to eq( 'y' ) end it 'converts false to off' do result = converter.parse( false ) expect( result ).to eq( 'n' ) end end end
Version data entries
14 entries across 14 versions & 1 rubygems