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