Autofix Rails/EagerEvaluationLogMessage (#23429)
* Autofix Rails/EagerEvaluationLogMessage * Update spec for debug block syntax
This commit is contained in:
parent
6a71bb23c2
commit
ed570050c6
17 changed files with 21 additions and 19 deletions
|
@ -194,7 +194,9 @@ RSpec.describe Remotable do
|
|||
let(:error_class) { error_class }
|
||||
|
||||
it 'calls Rails.logger.debug' do
|
||||
expect(Rails.logger).to receive(:debug).with(/^Error fetching remote #{hoge}: /)
|
||||
expect(Rails.logger).to receive(:debug) do |&block|
|
||||
expect(block.call).to match(/^Error fetching remote #{hoge}: /)
|
||||
end
|
||||
foo.hoge_remote_url = url
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue