Skip to content

Update to rspec 3 from 2 to resolve exists error #130

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

Merged
merged 1 commit into from
Feb 20, 2025
Merged

Conversation

mrblum
Copy link
Contributor

@mrblum mrblum commented Feb 20, 2025

To resolve the following error:
rspec-core-2.14.6/lib/rspec/core/ruby_project.rb:27:in block in find_first_parent_containing': undefined method exists?' for class File (NoMethodError)

    ascend_until {|path| File.exists?(File.join(path, dir))}
                                ^^^^^^^^

Did you mean? exist?

I ran bundle update rspec and updated the spec_helper.rb file to use the new syntax for color (from config.color_enabled to config.color) and this resolved the error. There are still many deprecation warnings which will need to be resolved in the future, but the tests are now running/passing.

To resolve the following error:
rspec-core-2.14.6/lib/rspec/core/ruby_project.rb:27:in `block in
find_first_parent_containing': undefined method `exists?' for class File
(NoMethodError)

        ascend_until {|path| File.exists?(File.join(path, dir))}
                                    ^^^^^^^^
Did you mean?  exist?

I ran bundle update rspec and updated the spec_helper.rb file to use the
new syntax for color (from `config.color_enabled` to `config.color`) and
this resolved the error.  There are still many deprecation warnings
which will need to be resolved in the future, but the tests are now
running/passing.
@mrblum mrblum requested review from a team as code owners February 20, 2025 16:11
@mrblum mrblum merged commit 9d7e3dc into master Feb 20, 2025
2 checks passed
@mrblum mrblum deleted the update-rspec branch February 20, 2025 16:19
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.

2 participants