Skip to content

Instantly share code, notes, and snippets.

@backus
Created December 26, 2015 08:44
Show Gist options
  • Select an option

  • Save backus/b7d29b76cd10c75c6726 to your computer and use it in GitHub Desktop.

Select an option

Save backus/b7d29b76cd10c75c6726 to your computer and use it in GitHub Desktop.
RSpec 3.4.1 crash. Run with --profile
/Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/notifications.rb:418:in `block in slowest_examples': undefined method `-@' for nil:NilClass (NoMethodError)
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/notifications.rb:417:in `each'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/notifications.rb:417:in `sort_by'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/notifications.rb:417:in `slowest_examples'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/formatters/profile_formatter.rb:33:in `dump_profile_slowest_examples'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/formatters/profile_formatter.rb:26:in `dump_profile'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/reporter.rb:189:in `block in notify'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/reporter.rb:188:in `each'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/reporter.rb:188:in `notify'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/reporter.rb:163:in `block in finish'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/reporter.rb:175:in `close_after'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/reporter.rb:156:in `finish'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/reporter.rb:79:in `ensure in report'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/reporter.rb:79:in `report'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:113:in `run_specs'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:89:in `run'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:73:in `run'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:41:in `invoke'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/gems/rspec-core-3.4.1/exe/rspec:4:in `<top (required)>'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/bin/rspec:23:in `load'
from /Users/johnbackus/.rvm/gems/ruby-2.2.3/bin/rspec:23:in `<main>'
describe '#abort' do
it 'crashes rspec' do
expect { abort }.to output('').to_stdout
end
end
gem 'rspec', '~> 3.4.0'
gem 'rspec-core', '~> 3.4.1'
GEM
specs:
diff-lcs (1.2.5)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.1)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
PLATFORMS
ruby
DEPENDENCIES
rspec (~> 3.4.0)
rspec-core (~> 3.4.1)
BUNDLED WITH
1.10.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment