Skip to content

Commit

Permalink
Write initial unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thejandroman committed Jan 31, 2016
1 parent d6ffcaf commit ac825f2
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 247 deletions.
241 changes: 0 additions & 241 deletions Puppetfile

This file was deleted.

20 changes: 20 additions & 0 deletions spec/fixtures/Puppetfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
mod 'puppetlabs/apache', :latest

mod 'puppetlabs-apt'

mod 'puppetlabs/stdlib', '4.11.0'

mod 'vcsrepo',
git: 'https://github.com/puppetlabs/puppetlabs-vcsrepo.git',
tag: '1.3.2'

mod 'concat',
git: 'https://github.com/puppetlabs/puppetlabs-concat.git',
branch: 'master'

mod 'firewall',
git: 'https://github.com/puppetlabs/puppetlabs-firewall',
ref: '71c659faf38d5e0cf19cfc16bb690b4c450fbd2a'

mod 'inifile',
git: 'https://github.com/puppetlabs/puppetlabs-inifile.git'
4 changes: 1 addition & 3 deletions spec/puppetfile_fixtures_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
expect(PuppetfileFixturesGenerator::VERSION).not_to be nil
end

it 'does something useful' do
pending('no code yet')
fail
describe '#create_fixtures' do
end
end
19 changes: 16 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'coveralls'
Coveralls.wear!
require 'simplecov'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
[SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter]
)
SimpleCov.start do
add_filter 'spec'
end

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'pry'
require 'puppetfile_fixtures_generator'

RSpec.configure do |config|
config.expect_with :rspec do |c|
c.syntax = :expect
end
end

0 comments on commit ac825f2

Please sign in to comment.