spec/puppet-check_spec.rb in puppet-check-1.6.0 vs spec/puppet-check_spec.rb in puppet-check-1.6.1

- old
+ new

@@ -39,19 +39,19 @@ let(:dir) { PuppetCheck.parse_paths(['.']) } let(:multi_dir) { PuppetCheck.parse_paths(%w[hieradata lib manifests]) } let(:repeats) { PuppetCheck.parse_paths(['hieradata', 'hieradata', 'lib', 'hieradata/good.json', 'manifests/good.pp', 'manifests/good.pp']) } it 'raises an error if no files were found' do - expect { no_files }.to raise_error(RuntimeError, 'puppet-check: no files found in supplied paths foo, bar, baz.') + expect { no_files }.to raise_error(RuntimeError, 'puppet-check: no files found in supplied paths \'foo, bar, baz\'.') end it 'correctly parses one file and returns it' do expect(file[0]).to eql('lib/good.rb') end it 'correctly parses one directory and returns all of its files' do dir.each { |file| expect(File.file?(file)).to be true } - expect(dir.length).to eql(35) + expect(dir.length).to eql(37) end it 'correctly parses multiple directories and returns all of their files' do multi_dir.each { |file| expect(File.file?(file)).to be true } expect(multi_dir.length).to eql(17)