Fix theme name requirement regression with efficient lookup by name (#35007)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
2254f47702
commit
825312d4b0
6 changed files with 98 additions and 12 deletions
|
|
@ -17,7 +17,7 @@ RSpec.describe ThemeHelper do
|
|||
)
|
||||
expect(html_links.last.attributes.symbolize_keys)
|
||||
.to include(
|
||||
href: have_attributes(value: match(/application/)),
|
||||
href: have_attributes(value: match(/default/)),
|
||||
media: have_attributes(value: '(prefers-color-scheme: dark)')
|
||||
)
|
||||
end
|
||||
|
|
@ -26,10 +26,10 @@ RSpec.describe ThemeHelper do
|
|||
context 'when using "default" theme' do
|
||||
let(:theme) { 'default' }
|
||||
|
||||
it 'returns the application stylesheet' do
|
||||
it 'returns the default stylesheet' do
|
||||
expect(html_links.last.attributes.symbolize_keys)
|
||||
.to include(
|
||||
href: have_attributes(value: match(/application/))
|
||||
href: have_attributes(value: match(/default/))
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue