Sha256: 070c2c9f3a4bea69bc3cf6239b3f9eb9d6fce790ac37a6549f746f1f7b4d658e

Contents?: true

Size: 478 Bytes

Versions: 120

Compression:

Stored size: 478 Bytes

Contents

# encoding: utf-8
require 'fedux_org_stdlib/logic_converters/on_off_converter'

RSpec.describe FeduxOrgStdlib::LogicConverters::OnOffConverter do
  let(:converter) { FeduxOrgStdlib::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

120 entries across 120 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.6.50 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.48 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.47 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.46 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.45 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.44 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.43 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.40 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.39 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.38 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.37 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.34 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.33 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.32 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.31 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.30 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.29 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.28 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.27 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.26 spec/logic_converters/on_off_converter_spec.rb