Sha256: a5ba45a429afe41bb5687cfdbd59a3836af60f5c4f16007324c2bf04a76c5144

Contents?: true

Size: 383 Bytes

Versions: 11

Compression:

Stored size: 383 Bytes

Contents

require 'spec_helper'

module Csv2hash
  describe TypeCoercer do
    let(:data) do
      [{ foo: ' y   ', bar: 'no', zone: ' Null', mischievous: ' pronoun ' }]
    end
    let(:coercer) { TypeCoercer.new(data) }

    before { coercer.deserialize! }

    specify do
      expect(coercer.data).to eql([{ foo: true, bar: false, zone: nil, mischievous: ' pronoun ' }])
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
csv2hash-0.7.7 spec/csv2hash/type_coercer_spec.rb
csv2hash-0.7.6 spec/csv2hash/type_coercer_spec.rb
csv2hash-0.7.5 spec/csv2hash/type_coercer_spec.rb
csv2hash-0.7.3 spec/csv2hash/type_coercer_spec.rb
csv2hash-0.7.2 spec/csv2hash/type_coercer_spec.rb
csv2hash-0.7.1 spec/csv2hash/type_coercer_spec.rb
csv2hash-0.7.0 spec/csv2hash/type_coercer_spec.rb
csv2hash-0.6.8 spec/csv2hash/type_coercer_spec.rb
csv2hash-0.6.7 spec/csv2hash/type_coercer_spec.rb
csv2hash-0.6.6 spec/csv2hash/type_coercer_spec.rb
csv2hash-0.6.5 spec/csv2hash/type_coercer_spec.rb