summaryrefslogtreecommitdiff
path: root/spec/monkey_patches/alias_should_to_must.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/monkey_patches/alias_should_to_must.rb')
-rwxr-xr-xspec/monkey_patches/alias_should_to_must.rb8
1 files changed, 8 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 100755
index 0000000..1a11117
--- /dev/null
+++ b/spec/monkey_patches/alias_should_to_must.rb
@@ -0,0 +1,8 @@
+require 'rspec'
+
+class Object
+ # This is necessary because the RAL has a 'should'
+ # method.
+ alias :must :should
+ alias :must_not :should_not
+end