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

[Fixes #1877] Do not duplicate namespace in the path name #2034

Merged
merged 1 commit into from Oct 19, 2018
Merged

[Fixes #1877] Do not duplicate namespace in the path name #2034

merged 1 commit into from Oct 19, 2018

Conversation

lauratpa
Copy link
Contributor

If a feature spec is generated with a namespaced name, the namespace gets duplicate in the filename as well.

The table_name method returns a string that is already a combination of the class_path and file_name. We could used file_name directly instead of the table_name, which is also the approach taken in the controller generator.

Closes #1877

This PR fixes issue #1877. If a feature spec is generated with a
namespaced name, the namespace gets duplicate in the filename as well.
@benoittgt
Copy link
Member

Thanks a lot @jekuta for this PR. It looks ok for me.

I'm still a junior here so the merge button will be probably push by @JonRowe

@JonRowe
Copy link
Member

JonRowe commented Oct 19, 2018

@benoittgt you can merge this if you feel its good to go, don't forget a change log :)

@benoittgt benoittgt merged commit 31e2e08 into rspec:master Oct 19, 2018
benoittgt added a commit that referenced this pull request Oct 19, 2018
JonRowe pushed a commit that referenced this pull request Oct 23, 2018
[Fixes #1877] Do not duplicate namespace in the path name
sebjacobs pushed a commit to futurelearn/rspec-rails that referenced this pull request Mar 15, 2019
[Fixes rspec#1877] Do not duplicate namespace in the path name
benoittgt added a commit to benoittgt/rspec-rails that referenced this pull request May 1, 2019
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.

None yet

3 participants