Issue #2136 has been reported by finalprefix.
----------------------------------------
Bug #2136: Fix puppet's incompatibility with the latest version of rspec
(1.2.2), and tie it to that version of rspec
http://projects.reductivelabs.com/issues/2136
Author: finalprefix
Status: Unreviewed
Priority: Normal
Assigned to:
Category: testing
Target version:
Complexity: Trivial
Affected version: 0.24.8
Keywords:
The first patch was contributed by Ethan Rowe to fix the monkey patches to
rspec to be compatible with rspec 1.2.2. The second ties puppet to rspec
v1.2.2, so as to eliminate the fragility of the rspec monkey patches.
Patch contributed by Ethan Rowe:
--- spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb
2009-03-27 18:48:39.000000000 -0400
+++ /home/ethan/tmp/add_confine_and_runnable_to_rspec_dsl.rb
2009-03-26 05:54:28.000000000 -0400
@@ -19,7 +19,7 @@
warn "Skipping unsuitable example group %s: %s"
% [example_group.description, example_group.messages.join(", ")]
next
end
- success = success & example_group.run
+ success = success & example_group.run(@options)
end
return success
ensure
Patch contributed by me
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 41b5e74..e3afd6f 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -17,6 +17,7 @@ end
require 'puppettest'
require 'puppettest/runnable_test'
require 'mocha'
+gem 'rspec', '=1.2.2'
require 'spec'
# load any monkey-patches
----------------------------------------
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---