From 532cfbb18195ba759574e91dc6bd360978045e75 Mon Sep 17 00:00:00 2001 From: Bruce Williams Date: Wed, 17 Mar 2010 20:23:22 -0700 Subject: Build ProviderExampleGroup for refactored provider tests --- spec/spec_helper.rb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'spec/spec_helper.rb') diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 1938658..40b79f1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -7,17 +7,14 @@ require 'puppet' gem 'rspec', '=1.2.9' require 'spec/autorun' -module Helpers - - def fixture(name, ext = '.txt') - File.read(File.join(File.dirname(__FILE__), 'fixtures', name.to_s + ext)) - end - +Dir[File.join(File.dirname(__FILE__), 'support', '*.rb')].each do |support_file| + require support_file end Spec::Runner.configure do |config| config.mock_with :mocha - config.include(Helpers) + config.include(FixtureHelpers) + config.include(VcsrepoHelpers) end # We need this because the RAL uses 'should' as a method. This -- cgit v1.2.3