diff options
| author | Luke Kanies <luke@madstop.com> | 2007-09-11 19:21:49 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-09-11 19:21:49 -0500 |
| commit | 1459c507ddccff2a2a6fbadd4c880c023b5e9893 (patch) | |
| tree | 5fcd350ef80ba8b257caab628a742d033543d2e9 | |
| parent | 3b3065bc73e409874a9e6f1be755754fb2b226bf (diff) | |
| download | puppet-1459c507ddccff2a2a6fbadd4c880c023b5e9893.tar.gz puppet-1459c507ddccff2a2a6fbadd4c880c023b5e9893.tar.xz puppet-1459c507ddccff2a2a6fbadd4c880c023b5e9893.zip | |
Adding setup/teardown hooks to rspec, so we can use test/unit methods
| -rw-r--r-- | spec/spec_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index aa56fd93e..a4171bb07 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -10,4 +10,11 @@ require 'puppettest' Spec::Runner.configure do |config| config.mock_with :mocha + config.prepend_before :each do + setup() if respond_to? :setup + end + + config.prepend_after :each do + teardown() if respond_to? :teardown + end end |
