spec/csv2hash/yaml_loader_spec.rb in csv2hash-0.6.6 vs spec/csv2hash/yaml_loader_spec.rb in csv2hash-0.6.7

- old
+ new

@@ -4,11 +4,11 @@ describe YamlLoader do subject { YamlLoader.new config_file } before { subject.load! } context 'yml' do - let(:config_file) { 'config/rules.erb.yml' } + let(:config_file) { 'config/rules.yml.erb' } specify do expect(subject.definition.name).to eql('example') expect(subject.definition.header_size).to eql(2) expect(subject.definition.cells.last.rules.fetch(:values)).to eql(18..90) @@ -23,10 +23,10 @@ expect(subject.definition.header_size).to eql(2) end end context 'extra validator' do - let(:config_file) { 'config/rules.extra_validator.erb.yml' } + let(:config_file) { 'config/rules.extra_validator.yml.erb' } specify do expect(subject.definition.name).to eql('example') expect(subject.definition.header_size).to eql(0) expect(subject.definition.cells.first.rules.fetch(:extra_validator)).to be_a(DowncaseValidator)