Class: RuboCop::Cop::RSpecRails::MinitestAssertions::FalseAssertion
- Inherits:
-
BasicAssertion
- Object
- BasicAssertion
- RuboCop::Cop::RSpecRails::MinitestAssertions::FalseAssertion
- Defined in:
- lib/rubocop/cop/rspec_rails/minitest_assertions.rb
Overview
:nodoc:
Constant Summary collapse
- MATCHERS =
%i[ assert_false ].freeze
Instance Attribute Summary
Attributes inherited from BasicAssertion
#actual, #expected, #failure_message
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BasicAssertion
#initialize, #negated?, #replaced
Constructor Details
This class inherits a constructor from RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion
Class Method Details
.match(actual, failure_message) ⇒ Object
305 306 307 |
# File 'lib/rubocop/cop/rspec_rails/minitest_assertions.rb', line 305 def self.match(actual, ) new(nil, actual, .first) end |
.minitest_assertion(node) ⇒ Object
301 |
# File 'lib/rubocop/cop/rspec_rails/minitest_assertions.rb', line 301
def_node_matcher 'self.minitest_assertion', <<~PATTERN # rubocop:disable InternalAffairs/NodeMatcherDirective
|
Instance Method Details
#assertion ⇒ Object
309 310 311 |
# File 'lib/rubocop/cop/rspec_rails/minitest_assertions.rb', line 309 def assertion 'be(false)' end |