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

Version Path
fedux_org-stdlib-0.3.2 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.3.0 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.2.1 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.1.3 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.1.2 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.1.1 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.1.0 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.0.39 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.0.38 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.0.37 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.0.36 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.0.35 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.0.33 spec/logic_converters/y_n_converter_spec.rb
fedux_org-stdlib-0.0.32 spec/logic_converters/y_n_converter_spec.rb