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

Fix NoMethodError for Pathname fixture paths #2026

Merged

Conversation

cupakromer
Copy link
Member

When the fixture_path is defined as a Pathname object the rails_fixture_file_wrapper fails with:

NoMethodError:
  undefined method `strip' for #<Pathname:0x00007fab0a970e70>

This resolves the issue by ensuring the fixture path is converted into a string prior to resolving it.

When the `fixture_path` is defined as a `Pathname` object the
`rails_fixture_file_wrapper` fails with:

    NoMethodError:
      undefined method `strip' for #<Pathname:0x00007fab0a970e70>

This resolves the issue by ensuring the fixture path is converted into a
string prior to resolving it.
@JonRowe JonRowe merged commit fe22555 into rspec:master Sep 19, 2018
@JonRowe
Copy link
Member

JonRowe commented Sep 19, 2018

Good catch!

@cupakromer cupakromer deleted the fix-nomethoderror-pathname-fixture-path branch September 20, 2018 13:56
JonRowe added a commit that referenced this pull request Oct 23, 2018
…ixture-path

Fix `NoMethodError` for `Pathname` fixture paths
sebjacobs pushed a commit to futurelearn/rspec-rails that referenced this pull request Mar 15, 2019
…ame-fixture-path

Fix `NoMethodError` for `Pathname` fixture paths
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

2 participants