diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 11 |
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 |