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.0.24 spec/logic_converters/true_false_converter_spec.rb
fedux_org-stdlib-0.0.23 spec/logic_converters/true_false_converter_spec.rb