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.25 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.23 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.22 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.21 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.20 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.18 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.17 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.16 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.15 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.14 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.13 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.12 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.11 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.9 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.8 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.7 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.6 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.5 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.4 spec/logic_converters/on_off_converter_spec.rb
fedux_org-stdlib-0.6.3 spec/logic_converters/on_off_converter_spec.rb