Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Provide a guide to contributing #101

Closed
CaseyLeask opened this Issue · 7 comments

2 participants

Casey Leask Thibaud Guillaume-Gentil
Casey Leask

Currently, I can't get all the base tests to pass due to specific versions of rspec the test suite requires.
Can you add a section on how to correctly set up a working copy of the source, without using the global gems?

The latest error is:
...................................../home/cleask/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb:219:in block in replace_bin_path': can't find executable spec (Gem::Exception) from /home/cleask/.rbenv/versions/1.9.3-p125/bin/spec:19 in'..........................................

Thibaud Guillaume-Gentil
Owner

It's already in the README under the testing section. Thanks!

Please run `rake spec:prepare_fixtures` once before launching specs.
Casey Leask

I've tried that, but it didn't fix the error.

Casey Leask

I've removed the gems I installed and did another try from scratch.
Immediately, I get these errors:

/home/cleask/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/spec_set.rb:88:in `block in materialize': Could not find rspec-1.3.1 in any of the sources (Bundler::GemNotFound)

/home/cleask/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/spec_set.rb:88:in `block in materialize': Could not find rspec-core-2.5.1 in any of the sources (Bundler::GemNotFound)

Thibaud Guillaume-Gentil thibaudgg reopened this
Thibaud Guillaume-Gentil
Owner

Sorry, I'll give a try again.

Thibaud Guillaume-Gentil
Owner

Ok, rake spec need to by run without bundle exec. Can you try with rspec spec to see if you still got these errors.

Thibaud Guillaume-Gentil
Owner

Works for you?

Casey Leask

Ah, I found the problem.
If I run both

rake spec:prepare_fixtures

and

rake spec

without bundler all the tests pass.
I don't normally run any project-related command outside of bundler, so I'll have to remember 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.