summaryrefslogtreecommitdiffstats
path: root/spec/monkey_patches
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-10-08 21:27:21 -0500
committerLuke Kanies <luke@madstop.com>2008-10-08 21:27:21 -0500
commit5ec6b0734d5656dbfcf89320d476e0aeeec500f5 (patch)
tree6629274f60655a23383d428e4004cc0e145e5644 /spec/monkey_patches
parent54abe7084da32570f1d4b8522d9d3232c4313d4e (diff)
downloadpuppet-5ec6b0734d5656dbfcf89320d476e0aeeec500f5.tar.gz
puppet-5ec6b0734d5656dbfcf89320d476e0aeeec500f5.tar.xz
puppet-5ec6b0734d5656dbfcf89320d476e0aeeec500f5.zip
Adding warnings when example groups are skipped.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/monkey_patches')
-rw-r--r--spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb5
1 files changed, 4 insertions, 1 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 0b4a5abdb..27cd6b3df 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
@@ -15,7 +15,10 @@ module Spec
prepare
success = true
example_groups.each do |example_group|
- next unless example_group.runnable?
+ unless example_group.runnable?
+ warn "Skipping unsuitable example group %s: %s" % [example_group.description, example_group.messages.join(", ")]
+ next
+ end
success = success & example_group.run
end
return success