diff options
author | Bruce Williams <bruce@codefluency.com> | 2010-03-12 17:44:19 -0800 |
---|---|---|
committer | Bruce Williams <bruce@codefluency.com> | 2010-03-12 17:44:19 -0800 |
commit | 350972d6be26cacdcb18875055f9723574312966 (patch) | |
tree | 88a2fa8aca3788e17f67691cce66462767bd89ae /spec/spec_helper.rb | |
parent | 176b1ec7a4620cae24996609ada33f21cc2eef84 (diff) |
Basic SVN provider
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 |