Sha256: dc2a7e448315b680675e166423a072795ceb64037b4a606fa86e36b15617f252

Contents?: true

Size: 496 Bytes

Versions: 22

Compression:

Stored size: 496 Bytes

Contents

require 'fedux_org/stdlib/logic_converters/true_false_converter'

describe FeduxOrg::Stdlib::LogicConverters::TrueFalseConverter do
  let( :converter ) { FeduxOrg::Stdlib::LogicConverters::TrueFalseConverter.new }

  context '#parse' do
    it 'converts true to "true"' do
      result = converter.parse( true )
      expect( result ).to eq( 'true' )
    end

    it 'converts false to "false"' do
      result = converter.parse( false )
      expect( result ).to eq( 'false' )
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.3.2 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.3.0 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.2.1 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.1.3 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.1.2 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.1.1 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.1.0 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.39 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.38 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.37 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.36 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.35 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.33 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.32 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.31 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.30 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.29 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.28 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.26 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.25 spec/logic_converters/true_false_converter_spec.rb