Skip to content

Instantly share code, notes, and snippets.

@caged
Created January 29, 2011 18:52
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 caged/802093 to your computer and use it in GitHub Desktop.
Save caged/802093 to your computer and use it in GitHub Desktop.
Stack level too deep
justin@justin ~pdxc[master]% rake spec:models --trace
(in /Users/justin/dev/lrr/rails/portlandcrime)
** Invoke spec:models (first_time)
** Invoke noop (first_time)
** Execute noop
** Execute spec:models
/Users/justin/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -S bundle exec rspec ./spec/models/crime_spec.rb ./spec/models/neighborhood_spec.rb ./spec/models/offense_spec.rb ./spec/models/stop_spec.rb
FFFFFFFFFFF
Failures:
1) Crime should have a geolocation or zero
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/justin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongomapper-49821df61931/lib/mongo_mapper/plugins/keys.rb:163
2) Crime should belong to an offense
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/justin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongomapper-49821df61931/lib/mongo_mapper/plugins/keys.rb:163
3) Crime should belong to a neighborhood
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/justin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongomapper-49821df61931/lib/mongo_mapper/plugins/keys.rb:163
4) Neighborhood should generate permalink from name
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/justin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongomapper-49821df61931/lib/mongo_mapper/plugins/keys.rb:163
5) Neighborhood should have some crimes
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/justin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongomapper-49821df61931/lib/mongo_mapper/plugins/keys.rb:163
6) Neighborhood should have demographics
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/justin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongomapper-49821df61931/lib/mongo_mapper/plugins/keys.rb:163
7) Neighborhood should only fetch portland neighborhoods
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/justin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongomapper-49821df61931/lib/mongo_mapper/plugins/keys.rb:163
8) Neighborhood should generate properly formatted geojson
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/justin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongomapper-49821df61931/lib/mongo_mapper/plugins/keys.rb:163
9) Offense should generate permalink and code from name
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/justin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongomapper-49821df61931/lib/mongo_mapper/plugins/keys.rb:163
10) Offense should have a type name and order
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/justin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongomapper-49821df61931/lib/mongo_mapper/plugins/keys.rb:163
11) Offense should have some crimes
Failure/Error: Unable to find matching line from backtrace
SystemStackError:
stack level too deep
# /Users/justin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/mongomapper-49821df61931/lib/mongo_mapper/plugins/keys.rb:163
Finished in 3.99 seconds
11 examples, 11 failures
rake aborted!
ruby -S bundle exec rspec ./spec/models/crime_spec.rb ./spec/models/neighborhood_spec.rb ./spec/models/offense_spec.rb ./spec/models/stop_spec.rb failed
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.4.0/lib/rspec/core/rake_task.rb:139:in `rescue in block (2 levels) in initialize'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.4.0/lib/rspec/core/rake_task.rb:135:in `block (2 levels) in initialize'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1112:in `verbose'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rspec-core-2.4.0/lib/rspec/core/rake_task.rb:131:in `block in initialize'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:636:in `block in execute'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:597:in `block in invoke_with_call_chain'
/Users/justin/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2029:in `block (2 levels) in top_level'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2029:in `block in top_level'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2001:in `block in run'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/bin/rake:31:in `<top (required)>'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/bin/rake:19:in `load'
/Users/justin/.rvm/gems/ruby-1.9.2-p0/bin/rake:19:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment