Update rubocop and rubocop-rspec (#26329)

This commit is contained in:
Nick Schonning
2023-08-22 03:31:40 -04:00
committed by GitHub
parent fe31571965
commit b970ed6098
15 changed files with 48 additions and 74 deletions

View File

@@ -7,8 +7,7 @@ describe Admin::FilterHelper do
params = ActionController::Parameters.new(
{ test: 'test' }
)
allow(helper).to receive(:params).and_return(params)
allow(helper).to receive(:url_for).and_return('/test')
allow(helper).to receive_messages(params: params, url_for: '/test')
result = helper.filter_link_to('text', { resolved: true })
expect(result).to match(/text/)