-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add necessary requires to run the project initializer #1058
Conversation
So.... The rails install generator failed because these requires weren't present (I reproduced the issue in my own local rails setup). I couldn't find any tests over this generator. Either I'm being obtuse, or we've got some missing coverage here. Does anyone have any thoughts? |
Add some? :) |
@JonRowe I wanted to ask first to make sure I wasn't missing that there were some. Also, not sure what the best way to do this is. It roughly needs to go like this: make a new rails up, add the gem, run the initializer. Should that be in a spec, or a cuke? How should it get run? Where should it put the rails app? |
(ping @cupakromer) |
The specs are part of the cukes. However, it seems that b/c this repo already has rspec-support installed as part of it, when that command is run |
In order to actually test this we need to do a shell invocation of creating a new rails app, modifying the Gemfile and then running the install generator. This could all be done by a CLI Cuke. |
@samphippen I believe that is already part of the cuke process. It creates a new rails app in |
However, I see part of the problem. When it generates the app it skips creating the Gemfile. It appears to continue to use the base repos Gemfile. |
@samphippen If this is going to be an issue, why keep this line: |
Since this is broken, maybe we should merge and I can release 3.0.1 with this and then we can figure out the missing test coverage after that? |
@myronmarston I've nearly got a bash script running which reproduces the failure every time, locally. I think merging this now and then adding coverage later is better. |
I have the same issue. Additionally output of
|
Add necessary requires to run the project initializer
rspec-rails 3.0.1 has been released with this fix. |
Thanks @myronmarston!!!!!! |
No description provided.