-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ARIA attributes to bootstrap helpers (closes #612); refactor nav …
…tests
- Loading branch information
Showing
16 changed files
with
349 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
module NavTests | ||
def nav_check(method, pagy) # e.g. pagy_bootstrap_nav | ||
_(app.send(method, pagy)).must_rematch :plain | ||
_(app.send(method, pagy, pagy_id: 'test-nav-id', link_extra: 'link-extra')).must_rematch :extras | ||
end | ||
|
||
def nav_js_check(method, pagy) # e.g. pagy_bootstrap_nav_js | ||
_(app.send(method, pagy)).must_rematch :plain | ||
_(app.send(method, pagy, pagy_id: 'test-nav-id', link_extra: 'link-extra', | ||
steps: { 0 => [1, 2, 2, 1], 600 => [1, 3, 3, 1] })).must_rematch :extras | ||
end | ||
|
||
def combo_nav_js_check(method, pagy) # e.g. pagy_bootstrap_combo_nav_js | ||
_(app.send(method, pagy)).must_rematch :plain | ||
_(app.send(method, pagy, pagy_id: 'test-nav-id', link_extra: 'link-extra')).must_rematch :extras | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
module WarningFilters | ||
module Calendar | ||
def warn(message, category: nil, **kwargs) | ||
if message.match?('Calendar#page_at') | ||
# ignore | ||
else | ||
super | ||
end | ||
end | ||
end | ||
end | ||
Warning.extend WarningFilters::Calendar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.