Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Rspec-core current dev > 2.11.1 #44

pierreozoux opened this Issue · 5 comments

2 participants


I would like to notice this error for future reference.

In the meantime I was trying to figure out for issue43, I think I found another issue :

Add this to the Gemfile:

gem "rspec-core", "~> 2.11", :git => ""

And you'll see this error

$bundle install
$bundle exec rake #ok
$bundle exec specjour
$bundle exec cucumber
Looking for listeners...
No listeners found on this machine, starting one...
Workers found: 4
pierres-imac.lan (4)
Loading RSpec environment... completed in 0.091339s
Loading Cucumber Environment
/Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/loader.rb:109:in `block (2 levels) in filtered_examples': undefined method `[]' for nil:NilClass (NoMethodError)
    from /Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/loader.rb:108:in `each'
    from /Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/loader.rb:108:in `detect'
    from /Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/loader.rb:108:in `block in filtered_examples'
    from /Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/loader.rb:106:in `map'
    from /Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/loader.rb:106:in `filtered_examples'
    from /Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/loader.rb:96:in `rspec_examples'
    from /Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/loader.rb:90:in `register_tests_with_printer'
    from /Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/loader.rb:86:in `load_app'
    from /Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/loader.rb:22:in `start'
    from /Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/cli.rb:57:in `load'
    from /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
    from /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
    from /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor.rb:275:in `dispatch'
    from /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/thor-0.16.0/lib/thor/base.rb:425:in `start'
    from /Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/cli.rb:24:in `start'
    from /Users/PierreOzoux/Documents/scripts/specjour/bin/specjour:5:in `<main>'

Do you find the same?

I tried to investigate...without success.. Sorry


This commit introduced the break : rspec/rspec-core@4fd3882

I'm investigating on how to correct specjour to handle this change. If you have any advices :)


So I corrected the little bug...Sincerly I still don't understand everything, and as there is another bug.. I prefer to wait until the next release of rspec-core to continue invesitgating on this.
(in fact, I was trying to test this patch : rspec/rspec-core#703 , to see if it's correcting our issue-43)

Here is my little patch. (I modified the gemfile to load the dev version of rspec-core)

And here is the new bug when running specjour:

NoMethodError undefined method `sub' for nil:NilClass
NoMethodError undefined method `sub' for nil:NilClass
/Users/PierreOzoux/Documents/scripts/specjour/lib/specjour/protocol.rb:11:in `load_object'

Spent some time working on these bugs this morning. Can you please test against specjour's master branch:

gem 'specjour', git: ''

Still having the same errors (I'm using gem "rspec-core", "~> 2.11", :git => "" and I think, I should use the whole dev branch for rspec, not just the dev branch for rspec-core )

I close the issue, it was just for future reference, when rspec will be updated. I'll re-work on that when it will be available.


You need to modify the rspec gem dependency in the specjour.gemspec file. The Gemfile loads its dependencies from specjour.gemspec.

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.