summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-09-30 16:44:14 -0500
committerLuke Kanies <luke@madstop.com>2008-09-30 16:44:14 -0500
commit6bc56aecdb08b894961563035551480a01e93d53 (patch)
tree28bc10d436ed2eacae0dcd5d40dbc2754c9575f0
parentb9c75cd14cfae6dca035519f13f7d159f2889d0a (diff)
downloadpuppet-6bc56aecdb08b894961563035551480a01e93d53.tar.gz
puppet-6bc56aecdb08b894961563035551480a01e93d53.tar.xz
puppet-6bc56aecdb08b894961563035551480a01e93d53.zip
Aliasing the rspec 'should' method to 'must'
so it does not conflict with the RAL 'should' method. Signed-off-by: Luke Kanies <luke@madstop.com>
-rw-r--r--spec/monkey_patches/alias_should_to_must.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/monkey_patches/alias_should_to_must.rb b/spec/monkey_patches/alias_should_to_must.rb
new file mode 100644
index 000000000..35d3342f2
--- /dev/null
+++ b/spec/monkey_patches/alias_should_to_must.rb
@@ -0,0 +1,5 @@
+class Object
+ # This is necessary because the RAL has a 'should'
+ # method.
+ alias :must :should
+end