Skip to content

Conversation

voxik
Copy link
Contributor

@voxik voxik commented Sep 1, 2021

This is in similar vein Rake is optionally loaded in:

begin
require 'rake'
rescue LoadError
end

@voxik
Copy link
Contributor Author

voxik commented Sep 1, 2021

Actually, both would deserve if there was some message provided when the require fails 🤔 similarly to:

def test_load_existent_po
begin
require 'gettext/po_parser'
rescue LoadError
omit 'gettext gem is not found'
end

@hsbt hsbt merged commit 3da151f into ruby:master Sep 3, 2021
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