summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorBruce Williams <bruce@codefluency.com>2010-03-17 20:23:22 -0700
committerBruce Williams <bruce@codefluency.com>2010-03-17 20:23:22 -0700
commit532cfbb18195ba759574e91dc6bd360978045e75 (patch)
treed1dacdf10ad4106671ceb01ae2af7130c247da5d /spec/spec_helper.rb
parent4b8e7074e62900ed796cc05bb67a7561f40f899a (diff)
Build ProviderExampleGroup for refactored provider tests
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb11
1 files changed, 4 insertions, 7 deletions
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