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

Changed the value used for $0 in subcommands #369

Merged
merged 1 commit into from
Dec 9, 2014

Conversation

jstrater
Copy link
Contributor

@jstrater jstrater commented Dec 9, 2014

$0 should be the first element of argv, which is generally the name of the program being run. Right now Spring is including the rest of argv as well. This is a problem for RSpec, which varies its behavior based on $0.

There's a lot more information on this issue here.

@jonleighton suggested fixing spring instead of spring-commands-rspec, and he also wrote the original code that this patch modifies, so this seems like a shoo-in.

Fixes #359

$0 should be the first element of argv, which is generally the name of
the program being run. Right now Spring is including the rest of argv as
well. This is a problem for RSpec, which varies its behavior based on
$0.

Fixes rails#359
jonleighton added a commit that referenced this pull request Dec 9, 2014
Changed the value used for $0 in subcommands
@jonleighton jonleighton merged commit 40e1b8f into rails:master Dec 9, 2014
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

Successfully merging this pull request may close these issues.

rspec with --tag option runs different test than spring rspec with same --tag option
2 participants