diff options
author | Luke Kanies <luke@madstop.com> | 2008-02-12 22:47:40 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-02-12 22:47:40 -0600 |
commit | cb5def4dc3310e1e697b3b27e7163224857c4c61 (patch) | |
tree | ec408a5c96ed5d8dfdb09c927bd89580d8e0b762 /spec/monkey_patches | |
parent | eb740336d418273eea726f653280dae7553da605 (diff) | |
download | puppet-cb5def4dc3310e1e697b3b27e7163224857c4c61.tar.gz puppet-cb5def4dc3310e1e697b3b27e7163224857c4c61.tar.xz puppet-cb5def4dc3310e1e697b3b27e7163224857c4c61.zip |
'rake' within the spec dir works now, anyway, which is
a good start. Autotest still doesn't work, though.
Diffstat (limited to 'spec/monkey_patches')
-rw-r--r-- | spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb b/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb index 3152c1bda..e2f3d4728 100644 --- a/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb +++ b/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb @@ -11,12 +11,16 @@ require 'puppettest/runnable_test' module Spec module Runner class ExampleGroupRunner - def run_behaviours - @behaviours.each do |behaviour| - # LAK:NOTE: this 'runnable' test is Puppet-specific. - next unless behaviour.runnable? - behaviour.run(@options.reporter, @options.dry_run, @options.reverse, @options.timeout) + def run + prepare + success = true + example_groups.each do |example_group| + next unless example_group.runnable? + success = success & example_group.run end + return success + ensure + finish end end end |