Skip to content

Commit 47a38fd

Browse files
committed
Check all Ruby blocks in documentation specs
1 parent 7a15d83 commit 47a38fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/quality/documentation_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
blocks.each do |block|
1616
# Only consider code blocks with language 'ruby'.
1717
next unless code_types.include?(block.type)
18-
next unless block.attr['class'] == 'language-ruby'
18+
next unless block.attr['class']&.downcase == 'language-ruby'
1919

2020
it "has a valid sample at #{block.options[:location] + 1}" do
2121
code = block.value.strip

0 commit comments

Comments
 (0)