You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C: Style/BlockDelimiters: Avoid using {...} for multi-line blocks.
cr.stubs client: mock {
If I was to use do/end here, the block would be passed to the stubs method, but I need it to be passed to the mock method, is there something I'm missing or doing wrong here?
The text was updated successfully, but these errors were encountered:
Based of the following lines in
lib/rubocop/cop/style/block_delimiters.rb
it seems that RuboCop should allow either delimiter type ({} or do/end) if operator precedence would make a difference. However the following code:
generates this offence:
If I was to use do/end here, the block would be passed to the
stubs
method, but I need it to be passed to themock
method, is there something I'm missing or doing wrong here?The text was updated successfully, but these errors were encountered: