Skip to content

Instantly share code, notes, and snippets.

@helino
Created December 1, 2010 05:38
Show Gist options
  • Save helino/723021 to your computer and use it in GitHub Desktop.
Save helino/723021 to your computer and use it in GitHub Desktop.
Output from rspec spec --backtrace
I'm being run before each 'it'
.I'm being run before each 'it'
.I'm being run once before the 'it's in my scope
FFF
Failures:
1) Router#handle runs the correct handler when multiple handlers have been added returns 1 for /
Failure/Error: @router.get '/' do 1 end
undefined method `get' for nil:NilClass
# ./spec/router_spec.rb:21:in `block (3 levels) in <top (required)>'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:29:in `instance_eval'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:29:in `run_in'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:64:in `run_all!'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:112:in `run_hook!'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:176:in `eval_before_alls'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:230:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:232:in `block in run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:232:in `map'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:232:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in `block (2 levels) in run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in `map'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in `block in run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/reporter.rb:12:in `report'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:24:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:55:in `run_in_process'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:46:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:10:in `block in autorun'
2) Router#handle runs the correct handler when multiple handlers have been added returns 2 for /foo
Failure/Error: @router.get '/' do 1 end
undefined method `get' for nil:NilClass
# ./spec/router_spec.rb:21:in `block (3 levels) in <top (required)>'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:29:in `instance_eval'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:29:in `run_in'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:64:in `run_all!'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:112:in `run_hook!'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:176:in `eval_before_alls'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:230:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:232:in `block in run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:232:in `map'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:232:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in `block (2 levels) in run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in `map'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in `block in run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/reporter.rb:12:in `report'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:24:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:55:in `run_in_process'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:46:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:10:in `block in autorun'
3) Router#handle runs the correct handler when multiple handlers have been added returns 3 foo /bar
Failure/Error: @router.get '/' do 1 end
undefined method `get' for nil:NilClass
# ./spec/router_spec.rb:21:in `block (3 levels) in <top (required)>'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:29:in `instance_eval'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:29:in `run_in'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:64:in `run_all!'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/hooks.rb:112:in `run_hook!'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:176:in `eval_before_alls'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:230:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:232:in `block in run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:232:in `map'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/example_group.rb:232:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in `block (2 levels) in run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in `map'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:27:in `block in run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/reporter.rb:12:in `report'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:24:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:55:in `run_in_process'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:46:in `run'
# /Users/erik/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:10:in `block in autorun'
Finished in 0.00828 seconds
5 examples, 3 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment