Skip to content

Commit

Permalink
ESY-6479 Update test spec
Browse files Browse the repository at this point in the history
  • Loading branch information
m-lilja committed Mar 26, 2024
1 parent 7055cff commit e2d0330
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/sidebar_html_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def sub_items_markup(page, current_page)

"<ul class=\"#{page.level.zero? ? 'secondary-nav-ul' : ''}\">
#{if page.level.positive? && page.children?
"<a href=\"../\" class=\"previous-nav\">
"<a href=\"../#/\" class=\"previous-nav\">
<i class=\"material-icons\" aria-hidden=\"true\">arrow_back_ios</i>
<span>Back to #{page.parent.title}</span>
</a>
Expand Down
7 changes: 5 additions & 2 deletions spec/support/verifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ def options
'http://restcookbook.com/Basics/loggingin/'
],
href_ignore: [
"#",
"../"
'#',
'#/',
'../#/',
'..',
'../'
]
}
end

Check notice on line 71 in spec/support/verifier.rb

View workflow job for this annotation

GitHub Actions / rubocop

[rubocop] spec/support/verifier.rb#L48-L71 <Metrics/MethodLength>

Method has too many lines. [22/20]
Raw output
spec/support/verifier.rb:48:5: C: Metrics/MethodLength: Method has too many lines. [22/20]
Expand Down

0 comments on commit e2d0330

Please sign in to comment.