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

Require bundler so that Bundler::GemfileNotFound becomes available #464

Merged

Conversation

denisdefreyne
Copy link
Member

Without requiring bundler, Bundler::GemfileNotFound does not exist.

Sorry for the delay in fixing this. :(

CC @bobthecow @gpakosz @jugglinmike - 👍 if you like (picking some random people to review)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) when pulling 5b21655 on require-bundler-for-gemfile-not-found-error into f859105 on release-3.7.x.

@gpakosz
Copy link
Member

gpakosz commented Jul 20, 2014

👍

@bobthecow
Copy link
Member

lgtm 👍

@FredyFreshFirm
Copy link

Ok
20. juli 2014 18:18 skrev "Justin Hileman" notifications@github.com
følgende:

lgtm [image: 👍]


Reply to this email directly or view it on GitHub
#464 (comment).

@jugglinmike
Copy link
Contributor

I verified this manually, but I'm wondering if we can back this with a test. test/test_gem.rb seems a likely candidate. It probably requires a lot more infrastructure than that file provides (we'd have to temporarily move this project's own Gemfile).

It's likely more appropriate to open a separate issue to create tests for nanoc's executable. Does this seem like a good idea?

@FredyFreshFirm
Copy link

Yup

Fredy Otén
22. juli 2014 14:23 skrev "jugglinmike" notifications@github.com følgende:

I verified this manually, but I'm wondering if we can back this with a
test. test/test_gem.rb
https://github.com/nanoc/nanoc/blob/db1db138608d4f6786e1a2482f12ab20359b424c/test/test_gem.rb
seems a likely candidate. It probably requires a lot more infrastructure
than that file provides (we'd have to temporarily move this project's own
Gemfile).

It's likely more appropriate to open a separate issue to create tests for
nanoc's executable. Does this seem like a good idea?


Reply to this email directly or view it on GitHub
#464 (comment).

@denisdefreyne
Copy link
Member Author

@jugglinmike The problem is that we already use Bundler to run the tests, which means bundler is already required. bin/nanoc is not tested except manually.

@jugglinmike
Copy link
Contributor

Our dependence on Bundler is no problem for testing this change--it just needs to ensure that the executable functions correctly in the absence of a Gemfile. But I don't mean to bikeshed; you should open a dedicated issue if you think that's worthwhile.

@denisdefreyne
Copy link
Member Author

@jugglinmike It’s very hard to test properly because it depends on the gems you have installed. You’d need to have a way of automatically testing with different gem setups (no Bundler + no Gemfile, no Bundler + Gemfile, Bundler + no Gemfile, Bundler + Gemfile).

denisdefreyne added a commit that referenced this pull request Aug 9, 2014
…und-error

Require bundler so that Bundler::GemfileNotFound becomes available
@denisdefreyne denisdefreyne merged commit 9eb14fd into release-3.7.x Aug 9, 2014
@denisdefreyne denisdefreyne deleted the require-bundler-for-gemfile-not-found-error branch August 9, 2014 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants