Sha256: 67d6c9f96aa418f4b3e012c936414b78c6390a1604c1983961a0cdd47667f485

Contents?: true

Size: 472 Bytes

Versions: 22

Compression:

Stored size: 472 Bytes

Contents

require 'fedux_org/stdlib/logic_converters/on_off_converter'

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

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

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.0.24 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.0.23 spec/logic_converters/on_off_converter_spec.rb