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
aruba init --test-framework cucumber adds aruba to Gemfile incorrectly but reports it as successful. #430
Comments
This is probably because I already had |
Mmh. Can you check if your file contains a "\n" at the very end of the file? |
Hhm. I didn't commit it in that state and moved on. Sorry! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
This issue has been automatically closed because of inactivity. You can support the Cucumber core team on opencollective. |
I can reproduce this behavior using a Gemfile with no "\n" at the end. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
Bump. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
This feels like a reproduction of the bug I raised a bit ago I'll close this as a duplicate in favour of the other one (Which is a more in-depth detailed look) |
I think the problem here is similar, but still different since it occurs outside of cucumber scenarios. #570 seems to fix it. |
I disagree, as that adds a newline only in one circumstance, whereas the generic fix is to fix up the append to cuke. But fair point, having the issues as separate I guess is valid. |
Summary
Initializing cucumber-ruby incorrectly appends the Gemfile and returns to stdout an incorrect success status.
Expected Behavior
When I run
$aruba init --test-framework cucumber
it should either append correctly or in the very least it should not display a success response for the append.Current Behavior
When I run
$aruba init --test-framework cucumber
at root it correctly createsfeatures/support/aruba.rb
and responds with a successfulappend Gemfile
response, but inspection of the Gemfile shows that it appended it incorrectly:Gemfile:
Steps to Reproduce (for bugs)
above
Context & Motivation
I simply manually rewrote this. Since it's init it's not a huge deal but I can imagine it tripping someone up.
Your Environment
The text was updated successfully, but these errors were encountered: