Sha256: c5f3fe607afa6b3f9db06df16bd335e6f7f738a567562ce773b73668f5ba35f6

Contents?: true

Size: 486 Bytes

Versions: 120

Compression:

Stored size: 486 Bytes

Contents

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

RSpec.describe FeduxOrgStdlib::LogicConverters::YesNoConverter do
  let(:converter) { FeduxOrgStdlib::LogicConverters::YesNoConverter.new }

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

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

Version data entries

120 entries across 120 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.8.6 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.8.5 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.8.4 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.8.3 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.8.0 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.33 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.31 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.30 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.29 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.28 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.27 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.26 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.25 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.24 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.23 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.22 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.21 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.20 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.19 spec/logic_converters/yes_no_converter_spec.rb
fedux_org-stdlib-0.7.18 spec/logic_converters/yes_no_converter_spec.rb