Permalink
Browse files

Fix Kernel#method_missing override so that it gets along with REE 1.8…

….7-2010.02

- Closes #237.
  • Loading branch information...
1 parent b92b697 commit 4cb4c22f98fc67c46d1ff908664a881e7dc38853 @jwilger jwilger committed with dchelimsky Nov 29, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/rspec/core/extensions/kernel.rb
@@ -2,6 +2,8 @@ module Kernel
private
+ alias_method :method_missing_without_debugger, :method_missing
+
def method_missing(m, *a)
if m.to_s == 'debugger'
begin
@@ -19,7 +21,7 @@ def method_missing(m, *a)
EOM
end
else
- super
+ method_missing_without_debugger(m, *a)
end
end
end

0 comments on commit 4cb4c22

Please sign in to comment.