2
0

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:
Echo
2025-06-12 16:09:45 +02:00
committed by GitHub
parent 2254f47702
commit 825312d4b0
6 changed files with 98 additions and 12 deletions

View File

@@ -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