Sha256: 133701bdfe9f16da564b2473318dd8f1122cf04fd7362e3ee0adc6f56b9ccadb
Contents?: true
Size: 480 Bytes
Versions: 22
Compression:
Stored size: 480 Bytes
Contents
require 'fedux_org/stdlib/logic_converters/yes_no_converter' describe FeduxOrg::Stdlib::LogicConverters::YesNoConverter do let( :converter ) { FeduxOrg::Stdlib::LogicConverters::YesNoConverter.new } context '#parse' do it 'converts true to "true"' do result = converter.parse( true ) expect( result ).to eq( 'yes' ) end it 'converts false to "false"' do result = converter.parse( false ) expect( result ).to eq( 'no' ) end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
fedux_org-stdlib-0.0.24 | spec/logic_converters/yes_no_converter_spec.rb |
fedux_org-stdlib-0.0.23 | spec/logic_converters/yes_no_converter_spec.rb |