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
Minitest::EmptyLineBeforeAssertionMethods does not properly handle assertions that are invoked with a block argument. Passing a block argument results in an error - undefined method args_type?' for ...`
Expected behavior
RuboCop Minitest should treat an assertion with a block argument identically to one where the block is explicitly specified.
Actual behavior
RuboCop Minitest generates an error when it processes this line
An error occurred while Minitest/EmptyLineBeforeAssertionMethods cop was inspecting ... undefined method args_type?' for ...`
then RuboCop Minitest generates an error undefined method args_type?' for ...`
RuboCop version
Include the output of rubocop -V or bundle exec rubocop -V if using Bundler. Here's an example:
You see extension cop versions (e.g. rubocop-minitest, rubocop-performance, and others) output by rubocop -V,
include them as well. Here's an example:
Minitest::EmptyLineBeforeAssertionMethods does not properly handle assertions that are invoked with a block argument. Passing a block argument results in an error -
undefined method
args_type?' for ...`Expected behavior
RuboCop Minitest should treat an assertion with a block argument identically to one where the block is explicitly specified.
Actual behavior
RuboCop Minitest generates an error when it processes this line
An error occurred while Minitest/EmptyLineBeforeAssertionMethods cop was inspecting ...
undefined method
args_type?' for ...`Steps to reproduce the problem
Consider the example from Minitest::Assertions#assert_raises
A file with this code is parsed without error by RuboCop Minitest. But if we alter this code slightly to read:
then RuboCop Minitest generates an error
undefined method
args_type?' for ...`RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:You see extension cop versions (e.g. rubocop-minitest, rubocop-performance, and others) output by rubocop -V,
include them as well. Here's an example:
The text was updated successfully, but these errors were encountered: