spec/csv2hash/structure_validator_spec.rb in csv2hash-0.6.4 vs spec/csv2hash/structure_validator_spec.rb in csv2hash-0.6.5

- old
+ new

@@ -4,13 +4,10 @@ describe StructureValidator do let(:definition) do Main.generate_definition :foo do set_type { Definition::MAPPING } mapping { cell position: [0,0], key: 'name' } - end.tap do |definition| - definition.validate! - definition.default! - end + end.tap { |d| d.validate! ; d.default! } end subject do Main.new(definition, data_source, ignore_blank_line: false) end