Sha256: c132c1303a066eb7b045bf19d6d4218e39e282d54756b594ec95f2fef137a749
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
require 'spec_helper' module Csv2hash describe YamlLoader do subject { YamlLoader.new config_file } before { subject.load! } context 'yml' do let(:config_file) { 'config/rules.erb.yml' } specify do expect(subject.definition.name).to eql('example') expect(subject.definition.header_size).to eql(2) end end context 'erb' do let(:config_file) { 'config/rules.yml' } specify do expect(subject.definition.name).to eql('example') expect(subject.definition.header_size).to eql(2) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
csv2hash-0.6.4 | spec/csv2hash/yaml_loader_spec.rb |