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 test deprecation warnings #1018

Merged
merged 4 commits into from
Aug 9, 2024
Merged

Fix test deprecation warnings #1018

merged 4 commits into from
Aug 9, 2024

Conversation

louis-antonopoulos
Copy link
Contributor

This PR:

  • Addresses two different deprecation warnings that appear when running tests:
DEPRECATION WARNING: The `exist` matcher overrides one built-in by RSpec; 
use `expect(Pathname.new(path)).to exist` instead
DEPRECATION WARNING: Using legacy connection handling is deprecated. 
Please set `legacy_connection_handling` to `false` in your application.

@louis-antonopoulos
Copy link
Contributor Author

I believe CI is failing here due to the issues resolved by #1017.

Fix DEPRECATION WARNING: The `exist` matcher overrides one built-in by RSpec; use `expect(Pathname.new(path)).to exist` instead
Fix DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set `legacy_connection_handling` to `false` in your application.
Using `Pathname.new` in tests results in a Hound error because of line length.
When using the 7.1 gemfile, we get this complaint:
"The `legacy_connection_handling` setter was deprecated in 7.0 and
removed in 7.1, but is still defined in your configuration. Please
remove this call as it no longer has any effect."

This change also sets legacy_connection_handling for Rails versions
before 7.1.
Copy link
Contributor

@sej3506 sej3506 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🙏🏻

@sej3506 sej3506 merged commit 87bca53 into main Aug 9, 2024
10 checks passed
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