Update rubocop-rspec to version 3.10.1 (#39303)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2026-06-08 15:27:34 +00:00
1 parent 4ee21a6c14
commit fc64804b4d
12 files changed
+24 -22

No files matched your search

+2 -2
View File
@@ -10,12 +10,12 @@ RSpec.describe Admin::FilterHelper do
allow(helper).to receive_messages(params: params, url_for: '/test')
result = helper.filter_link_to('text', { resolved: true })
expect(result).to match(/text/)
expect(result).to include('text')
end
it 'Uses table_link_to to create icon links' do
result = helper.table_link_to 'icon', 'text', 'path'
expect(result).to match(/text/)
expect(result).to include('text')
end
end
+3 -3
View File
@@ -16,8 +16,8 @@ RSpec.describe ApplicationHelper do
it 'uses the current theme and user settings classes in the result' do
expect(helper.html_classes)
.to match(/system-font/)
.and match(/reduce-motion/)
.to include('system-font')
.and include('reduce-motion')
end
private
@@ -38,7 +38,7 @@ RSpec.describe ApplicationHelper do
helper.content_for(:body_classes) { 'admin' }
expect(helper.body_classes)
.to match(/admin/)
.to include('admin')
end
end
end
+1 -1
View File
@@ -12,7 +12,7 @@ RSpec.describe ThemeHelper do
it 'returns the default stylesheet' do
expect(html_links.last.attributes.symbolize_keys)
.to include(
href: have_attributes(value: match(/default/))
href: have_attributes(value: include('default'))
)
end
end