Skip to content

Commit aae64bf

Browse files
nficanocursoragent
andcommitted
chore: fix RSpec/MatchWithSimpleRegex offense to unblock CI
rubocop-rspec 3.10.2 (dependabot #66) introduced RSpec/MatchWithSimpleRegex. Use include matcher for the simple string literal. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4b8e0e7 commit aae64bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/unit/coverage_extras_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
it 'rotate records a new credential id and revokes the old' do
310310
issued = registry.issue_for(job_id: 'job_b', lease: nil, agent: 'a@1', principal_id: 'p').first
311311
new_id = registry.rotate(job_id: 'job_b', credential_id: issued.id, new_value: 'sk-new')
312-
expect(new_id).to match(/_rotated_/)
312+
expect(new_id).to include('_rotated_')
313313
expect(store.outstanding(job_id: 'job_b')).to include(new_id)
314314
end
315315

0 commit comments

Comments
 (0)