I have run into the issue reported here and demonstrated here. Is there a work-around for this? Has this changed in rspec 2?
Thank you for rspec!
this is fixed in rspec 2
The error I believe was introducted in RSpec 1.3.1 with the following two lines in proxy.rb
@target.superclass.send(sym, *args, &block)
So when the proxy tries to forward it, it goes to the superclass rather than falling down to a send to method_missing.
A solution that seems to work for me is to change line 114 of proxy.rb to:
elsif @target.is_a?(Class) && @target.superclass.respond_to?(sym, true)
Closed by c723627
Only try to pass messages to the superclass if the superclass respond…
…s to the method
Fixes LH Bug #1049 and GH Bug #15 and #17