Skip to content

Commit

Permalink
Fix Kernel#method_missing override so that it gets along with REE 1.8…
Browse files Browse the repository at this point in the history
….7-2010.02

- Closes #237.
  • Loading branch information
jwilger authored and dchelimsky committed Nov 29, 2010
1 parent b92b697 commit 4cb4c22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rspec/core/extensions/kernel.rb
Expand Up @@ -2,6 +2,8 @@ module Kernel


private private


alias_method :method_missing_without_debugger, :method_missing

def method_missing(m, *a) def method_missing(m, *a)
if m.to_s == 'debugger' if m.to_s == 'debugger'
begin begin
Expand All @@ -19,7 +21,7 @@ def method_missing(m, *a)
EOM EOM
end end
else else
super method_missing_without_debugger(m, *a)
end end
end end
end end

0 comments on commit 4cb4c22

Please sign in to comment.