]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/stdlib/spec/monkey_patches/alias_should_to_must.rb
upgrade to stdlib 4.6.1
[dsa-puppet.git] / 3rdparty / modules / stdlib / spec / monkey_patches / alias_should_to_must.rb
diff --git a/3rdparty/modules/stdlib/spec/monkey_patches/alias_should_to_must.rb b/3rdparty/modules/stdlib/spec/monkey_patches/alias_should_to_must.rb
new file mode 100755 (executable)
index 0000000..505e240
--- /dev/null
@@ -0,0 +1,9 @@
+#! /usr/bin/env ruby -S rspec
+require 'rspec'
+
+class Object
+  # This is necessary because the RAL has a 'should'
+  # method.
+  alias :must :should
+  alias :must_not :should_not
+end