Curtis j Schofield
2011-Feb-21 19:45 UTC
[rspec-users] Rspec is swallowing undefined methods in it''s method_missing and looping forever
Has anyone else encountered this?
It will end up printing this :
1) Applications Scribd api requests should always be private
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/o_o/.rvm/gems/ruby-1.9.2-p0 at capr3
/gems/rspec-expectations-2.5.0/lib/rspec/matchers/method_missing.rb:7
We noticed this.
Curtis Schofield & Anita Kuno
--
make haste slowly \
festina lente \
-
mobile +1_415_632_6001
curtis at robotarmyma.de
http://robotarmyma.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/rspec-users/attachments/20110221/f9122454/attachment-0001.html>
Myron Marston
2011-Feb-27 04:25 UTC
[rspec-users] Rspec is swallowing undefined methods in it''s method_missing and looping forever
On Feb 21, 11:45?am, Curtis j Schofield <curtis.schofi... at gmail.com> wrote:> Has anyone else encountered this? > > It will end up printing this : > > ?1) Applications Scribd api requests should always be private > ? ? ?Failure/Error: Unable to find matching line from backtrace > ? ? ?SystemStackError: > ? ? ? ?stack level too deep > ? ? ?# /Users/o_o/.rvm/gems/ruby-1.9.2-p0 at capr3 > /gems/rspec-expectations-2.5.0/lib/rspec/matchers/method_missing.rb:7 > > We noticed this. > > Curtis Schofield & Anita Kuno > > -- > make haste slowly \ > festina lente ?\ > - > mobile ?+1_415_632_6001 > cur... at robotarmyma.dehttp://robotarmyma.de > > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-usersA similar issue has been reported[1]. It''s a weird bug with ruby 1.9[2]. When you include RSpec::Matchers in an example group, it makes `super` recurse infinitely. The solution, for now, is to not include RSpec::Matchers in an example group. You shouldn''t need to, anyway; RSpec takes care of including it for you. I''m working on a fix to work around the bug in 1.9. Myron [1] https://github.com/rspec/rspec-expectations/issues#issue/63 [2] https://gist.github.com/845896