spec/csv2hash/coniguration_spec.rb in csv2hash-0.7.3 vs spec/csv2hash/coniguration_spec.rb in csv2hash-0.7.5

- old
+ new

@@ -3,15 +3,33 @@ 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(: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