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

Update File.exists? reference #223

Merged

Conversation

colinbruce
Copy link
Contributor

This should remove the devise_saml_authenticatable/saml_config.rb:17: warning: File.exists? is deprecated; use File.exist? insteadwarnings that are output in tests and server logs

This should remove the `gems/ruby-3.1.2/gems/devise_saml_authenticatable-1.9.0/lib/devise_saml_authenticatable/saml_config.rb:17: warning: File.exists? is deprecated; use File.exist? instead`
warnings that are output in tests and server logs
Copy link
Collaborator

@adamstegman adamstegman left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this!

@adamstegman
Copy link
Collaborator

Looks like a test needs to be updated:

allow(File).to receive(:exists?).with("/railsroot/config/idp.yml").and_return(false)

@colinbruce
Copy link
Contributor Author

Thanks @adamstegman - I really struggled with getting the tests to run (at-all) locally so this was a bit of a punt! 😄

Ensure new File.exist call is tested
Ensure File.exist? call is tested instead of File.exists?
@adamstegman adamstegman merged commit 3c5aeb6 into apokalipto:master Jun 28, 2022
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