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.3.2 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.3.0 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.2.1 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.1.3 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.1.2 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.1.1 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.1.0 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.39 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.38 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.37 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.36 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.35 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.33 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.32 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.31 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.30 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.29 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.28 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.26 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.0.25 spec/logic_converters/yes_no_converter_spec.rb