Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bundle exec in Rakefile #174

Closed
0xced opened this issue Oct 8, 2015 · 4 comments
Closed

Use bundle exec in Rakefile #174

0xced opened this issue Oct 8, 2015 · 4 comments

Comments

@0xced
Copy link
Contributor

0xced commented Oct 8, 2015

Shouldn't kick, rspec, cucumber and rubocop be run through bundle exec?

I have rspec 3 installed so when I run rake spec I get an error because be_true and be_false are treated as errors with rspec 3.

It works fine when run through bundle exec (with a deprecation warning).

@kattrali
Copy link
Contributor

kattrali commented Oct 8, 2015

Thanks! 🍬

@0xced
Copy link
Contributor Author

0xced commented Oct 8, 2015

If I run rake spec I still get failures because rspec 3.3.2 is used.
If I run bundle exec rake spec everything is fine because it uses the bundled rspec 2.99.2 instead.

Is running rake through bundle exec the de facto standard for ruby projects? Is it too obvious to warrant a mention in the README?

@0xced
Copy link
Contributor Author

0xced commented Oct 8, 2015

And now I just learnt about rubygems-bundler and I’m even more confused. 😕

@kattrali
Copy link
Contributor

kattrali commented Oct 8, 2015

What on earth... 😨 That rabbit hole is just too deep, @0xced! Taking another look.

@kattrali kattrali reopened this Oct 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants