Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created December 13, 2009 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save methodmissing/1be3d65c1ff8c23ce964 to your computer and use it in GitHub Desktop.
Save methodmissing/1be3d65c1ff8c23ce964 to your computer and use it in GitHub Desktop.
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