Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit 7ea05dc5 authored by Benedikt Wegmann's avatar Benedikt Wegmann
Browse files

rspec: Setup angeglichen an http://rspec-puppet.com/tutorial/

parent 398125be
No related merge requests found
require 'rspec-puppet/rake_task' require 'rake'
require 'rspec/core/rake_task'
begin RSpec::Core::RakeTask.new(:spec) do |t|
if Gem::Specification::find_by_name('puppet-lint') t.pattern = 'spec/*/*_spec.rb'
require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp"]
task :default => [:rspec, :lint]
end
rescue Gem::LoadError
task :default => :rspec
end end
require 'spec_helper'
describe 'Puppet' do
context 'with defaults for all parameters' do
it { should contain_class('Puppet') }
end
end
require 'rspec-puppet/spec_helper' require 'rspec-puppet/spec_helper'
require 'rspec-puppet'
fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures'))
RSpec.configure do |c|
c.module_path = File.join(fixture_path, 'modules')
c.manifest_dir = File.join(fixture_path, 'manifests')
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment