Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

rspec and ruby 1.9.3 not working #54

Closed
gogogarrett opened this Issue · 4 comments

4 participants

@gogogarrett

/Users/heinleng/.rvm/gems/ruby-1.9.3-p0/gems/ci_reporter-1.7.0/lib/ci/reporter/rspec.rb:203:in write_report': undefined methodfinish' for nil:NilClass (NoMethodError)

https://github.com/nicksieger/ci_reporter/blob/master/lib/ci/reporter/rspec.rb#L206 This is the line that's failing. @suite is nil, and I have no idea how to fix it.

Ruby => ruby-1.9.3-p0
Rspec => rspec-rails (2.8.1)

This is my Rakefile:

require File.expand_path('../config/application', __FILE__)
require 'rspec/core/rake_task'
require 'ci/reporter/rake/rspec'

RSpec::Core::RakeTask.new(:all => ["ci:setup:rspec"]) do |t|
  t.pattern = 'spec/**/*'
end

TestingCi::Application.load_tasks
@ScottDugas

I don't know about your rakefile, but with ruby-1.9.3-p125 and rspec-rails 2.9.0 I can successfully run rake spec with this rakefile:

require File.expand_path('../config/application', __FILE__)
require 'ci/reporter/rake/rspec'

TestingCi::Application.load_tasks

Also, using rails 3.2.2, and ci_reporter 1.7.0

I am manually running rake ci:setup:rspec before running rake spec

@steveyken

I'm also getting this error on CI build machine but when on my dev workstation, all is fine. I can't think of anything that's different between the two environments that would impact it though.

I'm running rspec 2.11.0, rails 3.2.6, ci_reporter 1.7.0, ruby 1.9.3-p134 and my command is:

RAILS_ENV=test bundle exec rspec --require ci/reporter/rake/rspec_loader --format CI::Reporter::RSpec spec
@shepmaster shepmaster added the rspec label
@shepmaster
Owner

We are in the process of cleaning out old issues. Specifically, the
next version of CI::Reporter is only going to support RSpec 2.14 and
above. If this issue still applies to this version, please let us
know, otherwise we're going to close this issue to focus on current
problems. Thanks for your report!

@shepmaster
Owner

Closing due to inactivity.

@shepmaster shepmaster closed this
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.