Wrapping objects sometimes infinite loops
SFEley opened this issue · 0 comments
SFEley commented
While working on TT:
before(:each) do
# We don't care about the full OAuth setup complexity
@token = stub("an OAuth access token", token: "StubbyToken", secret: "StubbySecret")
@this.token = @token
end
makes:
1)
SystemStackError in 'User OAuth access remembers its token'
stack level too deep
/Users/steve/.rvm/gems/ruby-1.9.1-p378/gems/candy-0.1.0/lib/candy/wrapper.rb:58:in `each'
/Users/steve/.rvm/gems/ruby-1.9.1-p378/gems/candy-0.1.0/lib/candy/wrapper.rb:58:in `wrap_hash'
/Users/steve/.rvm/gems/ruby-1.9.1-p378/gems/candy-0.1.0/lib/candy/wrapper.rb:35:in `wrap'
/Users/steve/.rvm/gems/ruby-1.9.1-p378/gems/candy-0.1.0/lib/candy/wrapper.rb:75:in `block in wrap_object'
/Users/steve/.rvm/gems/ruby-1.9.1-p378/gems/candy-0.1.0/lib/candy/wrapper.rb:72:in `each'
/Users/steve/.rvm/gems/ruby-1.9.1-p378/gems/candy-0.1.0/lib/candy/wrapper.rb:72:in `wrap_object'
/Users/steve/.rvm/gems/ruby-1.9.1-p378/gems/candy-0.1.0/lib/candy/wrapper.rb:46:in `wrap'
/Users/steve/.rvm/gems/ruby-1.9.1-p378/gems/candy-0.1.0/lib/candy/wrapper.rb:75:in `block in wrap_object'
/Users/steve/.rvm/gems/ruby-1.9.1-p378/gems/candy-0.1.0/lib/candy/wrapper.rb:72:in `each'
/Users/steve/.rvm/gems/ruby-1.9.1-p378/gems/candy-0.1.0/lib/candy/wrapper.rb:72:in `wrap_object'
/Users/steve/.rvm/gems/ruby-1.9.1-p378/gems/candy-0.1.0/lib/candy/wrapper.rb:46:in `wrap'
...and so forth.