spec/puppet-check_spec.rb in puppet-check-1.4.1 vs spec/puppet-check_spec.rb in puppet-check-1.5.0

- old
+ new

@@ -12,10 +12,14 @@ expect(PuppetCheck.settings[:style_check]).to eql(true) PuppetCheck.settings[:smoke_check] = true expect(PuppetCheck.settings[:smoke_check]).to eql(true) PuppetCheck.settings[:regression_check] = true expect(PuppetCheck.settings[:regression_check]).to eql(true) + PuppetCheck.settings[:public] = 'public.pem' + expect(PuppetCheck.settings[:public]).to eql('public.pem') + PuppetCheck.settings[:private] = 'private.pem' + expect(PuppetCheck.settings[:private]).to eql('private.pem') PuppetCheck.settings[:output_format] = 'text' expect(PuppetCheck.settings[:output_format]).to eql('text') PuppetCheck.settings[:octoconfig] = '.octocatalog-diff.cfg.rb' expect(PuppetCheck.settings[:octoconfig]).to eql('.octocatalog-diff.cfg.rb') PuppetCheck.settings[:octonodes] = %w[localhost.localdomain] @@ -44,20 +48,20 @@ 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(29) + expect(dir.length).to eql(34) 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(13) + expect(multi_dir.length).to eql(16) end it 'correctly parses three directories (one repeated) and three files (one repeated from directories and another repeated from files) and returns the unique files' do repeats.each { |file| expect(File.file?(file)).to be true } - expect(repeats.length).to eql(10) + expect(repeats.length).to eql(13) end end context '.execute_parsers' do it 'correctly organizes a set of files and invokes the correct parsers' do