spec/csv2hash/validator_spec.rb in csv2hash-0.2.0 vs spec/csv2hash/validator_spec.rb in csv2hash-0.2.1
- old
+ new
@@ -7,15 +7,9 @@
definition.validate!
definition.default!
end
end
- subject do
- Csv2hash.new(definition, 'file_path').tap do |parser|
- parser.instance_variable_set :@data_source, data_source
- end
- end
-
describe '#message' do
subject { Csv2hash.new double('definition', type: Csv2hash::Definition::COLLECTION), nil }
context 'string value' do
let(:rule) { { foo: 'bar', message: ':foo are value of foo key' } }