Sha256: 7bcb6879980b2f739eb50583e95b59b34186e8a093e5f835962147f1b7c57457

Contents?: true

Size: 874 Bytes

Versions: 3

Compression:

Stored size: 874 Bytes

Contents

require 'spec_helper'

module Csv2hash
  describe Configuration do
    let(:configuration) { Configuration.new }

    describe '#default' do
      let(:true_values)    { ['yes','y','t'] }
      let(:false_values)   { ['no','n','f']  }
      let(:nil_values)     { ['nil','null']  }
      let(:ignore_case)    { false }
      let(:exact_matching) { false }

      it 'true values' do
        expect(configuration.true_values).to eq(true_values)
      end

      it 'false values' do
        expect(configuration.false_values).to eq(false_values)
      end

      it 'nil values' do
        expect(configuration.nil_values).to eq(nil_values)
      end

      it 'ignore_case' do
        expect(configuration.ignore_case).to eq(ignore_case)
      end

      it 'exact_matching' do
        expect(configuration.exact_matching).to eq(exact_matching)
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
csv2hash-0.7.7 spec/csv2hash/coniguration_spec.rb
csv2hash-0.7.6 spec/csv2hash/coniguration_spec.rb
csv2hash-0.7.5 spec/csv2hash/coniguration_spec.rb