diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a4aeeae..1938658 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -7,8 +7,17 @@ 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 + +end + Spec::Runner.configure do |config| - config.mock_with :mocha + config.mock_with :mocha + config.include(Helpers) end # We need this because the RAL uses 'should' as a method. This |