diff --git a/src/api/spec/models/bs_request_spec.rb b/src/api/spec/models/bs_request_spec.rb index cffb29d00ff..cdd72ec2eab 100644 --- a/src/api/spec/models/bs_request_spec.rb +++ b/src/api/spec/models/bs_request_spec.rb @@ -273,9 +273,7 @@ end it 'does not change the priority of the bs request' do - # rubocop:disable Lint/AmbiguousBlockAssociation - expect { bs_request.sanitize! }.not_to change{ HistoryElement::RequestPriorityChange.count } - # rubocop:enable Lint/AmbiguousBlockAssociation + expect { bs_request.sanitize! }.not_to(change { HistoryElement::RequestPriorityChange.count }) expect(bs_request.priority).to eq('moderate') end end