Skip to content

Commit

Permalink
lint + fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
CEdwardsBlasikiewicz committed Nov 25, 2024
1 parent 85dea48 commit 1522e25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions app/helpers/blacklight/layout_helper_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def show_content_classes
# Attributes to add to the <html> tag (e.g. lang and dir)
# @return [Hash]
def html_tag_attributes
{ lang: I18n.locale }
{lang: I18n.locale}
end

##
Expand All @@ -30,22 +30,22 @@ def show_sidebar_classes
# Classes used for sizing the main content of a Blacklight page
# @return [String]
def main_content_classes
'col-lg-9'
"col-lg-9"
end

##
# Classes used for sizing the sidebar content of a Blacklight page
# @return [String]
def sidebar_classes
'page-sidebar col-lg-3'
"page-sidebar col-lg-3"
end

##
# Class used for specifying main layout container classes.
# Set config.full_width_layout to true to use a fluid layout.
# @return [String]
def container_classes
blacklight_config.full_width_layout ? 'container-fluid' : 'container-xxl'
blacklight_config.full_width_layout ? "container-fluid" : "container-xxl"
end

##
Expand All @@ -55,15 +55,15 @@ def container_classes
#
# @param [Hash] options
# @return [String]
def render_nav_actions(options = {}, &block)
render_filtered_partials(blacklight_config.navbar.partials, options, &block)
def render_nav_actions(options = {}, &)
render_filtered_partials(blacklight_config.navbar.partials, options, &)
end

##
# Open Search discovery tag for HTML <head> links
# @return [String]
def opensearch_description_tag title, href
tag :link, href: href, title: title, type: "application/opensearchdescription+xml", rel: "search"
tag.link(href: href, title: title, type: "application/opensearchdescription+xml", rel: "search")
end

##
Expand Down Expand Up @@ -104,7 +104,7 @@ def render_body_class
# @see render_body_class
# @return [Array<String>]
def extra_body_classes
@extra_body_classes ||= ["blacklight-#{controller.controller_name}", "blacklight-#{[controller.controller_name, controller.action_name].join('-')}"]
@extra_body_classes ||= ["blacklight-#{controller.controller_name}", "blacklight-#{[controller.controller_name, controller.action_name].join("-")}"]
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
it "renders the start over button" do
render_inline(described_class.new)

expect(page).to have_css(".catalog_startOverLink.btn.btn-outline-secondary.btn-sm.arrow-before", text: I18n.t("blacklight.search.start_over"))
expect(page).to have_css(".catalog_startOverLink.btn.btn-sm.btn-secondary.arrow-before", text: I18n.t("blacklight.search.start_over"))
end
end

0 comments on commit 1522e25

Please sign in to comment.