Skip to content

Instantly share code, notes, and snippets.

@methodmissing

methodmissing/backtrace Secret

Created Dec 13, 2009
Embed
What would you like to do?
1) Error:
test_home(TestTwitstreamWebApp):
ArgumentError: wrong number of arguments (1 for 0)
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:495:in `instance_eval'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:495:in `route_eval'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:476:in `block (2 levels) in route!'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:473:in `catch'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:473:in `block in route!'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:452:in `each'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:452:in `route!'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:574:in `dispatch!'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:387:in `block in call!'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:539:in `instance_eval'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:539:in `block in invoke'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:539:in `catch'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:539:in `invoke'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:387:in `call!'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:376:in `call'
/opt/local/ruby19/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/commonlogger.rb:20:in `_call'
/opt/local/ruby19/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/commonlogger.rb:13:in `call'
/opt/local/ruby19/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in `call'
/opt/local/ruby19/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/commonlogger.rb:20:in `_call'
/opt/local/ruby19/lib/ruby/gems/1.9.1/gems/rack-1.0.0/lib/rack/commonlogger.rb:13:in `call'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:954:in `block in call'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:980:in `synchronize'
/Users/lourens/projects/twitstream/vendor/sinatra/lib/sinatra/base.rb:954:in `call'
/Users/lourens/projects/twitstream/vendor/rack-test/lib/rack/mock_session.rb:30:in `request'
/Users/lourens/projects/twitstream/vendor/rack-test/lib/rack/test.rb:207:in `process_request'
/Users/lourens/projects/twitstream/vendor/rack-test/lib/rack/test.rb:57:in `get'
test/twitstream/web/test_app.rb:11:in `test_home'
Finished in 0.293277 seconds.
# Run a route block and throw :halt with the result.
def route_eval(&block)
throw :halt, instance_eval(&block)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.