Skip to content

Commit

Permalink
Fix build warning on Ruby 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jaynetics committed Jan 10, 2024
1 parent 8b33f6b commit 558c8b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/character_set/require_optional_dependency_spec.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
shared_examples :character_set_require_optional_dependency do |variant|
it 'returns true if the dependency is available' do
expect(variant.require_optional_dependency('csv', :foo)).to be true
expect(variant.require_optional_dependency('uri', :foo)).to be true
end

it 'returns true for already-loaded dependencies' do
variant.require_optional_dependency('csv', :foo)
expect(variant.require_optional_dependency('csv', :foo)).to be true
variant.require_optional_dependency('uri', :foo)
expect(variant.require_optional_dependency('uri', :foo)).to be true
end

it 'raises LoadError if the dependency is not available' do
Expand Down

0 comments on commit 558c8b9

Please sign in to comment.