Skip to content

Commit

Permalink
Fix test issue with asciidoctor and YARD Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Sep 3, 2024
1 parent b0767b5 commit e458be0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,10 @@ def puts(str = '')
Kernel.srand config.seed
end

# Needed before including YARD to avoid a Logger load conflict because of the `include YARD` line
begin
require 'asciidoctor'
rescue LoadError; end

YARD::Logger
include YARD

0 comments on commit e458be0

Please sign in to comment.