Skip to content

Loading…

Issues with RSpec 2.11.x #69

Closed
pivotal-chelsea opened this Issue · 1 comment

1 participant

@pivotal-chelsea

When we setup properly we get the following stack trace:

 1) MessageDecorator to_json should have user id, conversation id, text, story, and created_at
     Failure/Error: Unable to find matching line from backtrace
     NoMethodError:
       undefined method `flush' for nil:NilClass
     # /home/chelsea/.jenkins/jobs/chelsea/workspace/spec/spec_helper.rb:104:in `system'
     # /home/chelsea/.jenkins/jobs/chelsea/workspace/spec/spec_helper.rb:104:in `block (3 levels) in <top (required)>'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example.rb:236:in `instance_eval'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example.rb:236:in `instance_eval'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/hooks.rb:23:in `run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/hooks.rb:72:in `block in run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/hooks.rb:72:in `each'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/hooks.rb:72:in `run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/hooks.rb:424:in `run_hook'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example_group.rb:323:in `run_before_each_hooks'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example.rb:299:in `run_before_each'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example.rb:112:in `block in run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/draper-0.11.0/lib/draper/rspec_integration.rb:18:in `call'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/draper-0.11.0/lib/draper/rspec_integration.rb:18:in `block (2 levels) in <module:Draper>'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example.rb:246:in `instance_eval_with_args'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/hooks.rb:93:in `block (2 levels) in run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/hooks.rb:91:in `call'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/hooks.rb:91:in `run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/hooks.rb:424:in `run_hook'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example_group.rb:318:in `run_around_each_hooks'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example.rb:255:in `with_around_each_hooks'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example.rb:110:in `run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example_group.rb:378:in `block in run_examples'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example_group.rb:374:in `map'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example_group.rb:374:in `run_examples'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example_group.rb:360:in `run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example_group.rb:361:in `block in run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example_group.rb:361:in `map'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/example_group.rb:361:in `run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/command_line.rb:28:in `map'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/command_line.rb:28:in `block in run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/reporter.rb:34:in `report'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/command_line.rb:25:in `run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/runner.rb:66:in `rescue in run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/runner.rb:62:in `run'
     # /home/chelsea/.rvm/gems/ruby-1.9.3-p194@chelsea/gems/rspec-core-2.11.0/lib/rspec/core/runner.rb:8:in `block in autorun'

We're using Ruby 1.9.3 and pointing at the (now current) CI Reporter master

@pivotal-chelsea

Closing this. Sorry for the ambiguity of this issue.

It turns out this was issues with some of our dependent gems, includes with Spork, and some brain-deadery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.