From 1379d3e9114a6195cbddda6ca18ab59fb48bf177 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 28 Jan 2024 10:17:32 +1300 Subject: [PATCH] refactor: throw error if interface methods are not implemented --- lib/rubocop/cop/rspec/rails/minitest_assertions.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/rubocop/cop/rspec/rails/minitest_assertions.rb b/lib/rubocop/cop/rspec/rails/minitest_assertions.rb index 1e153dd7f..2b0dcf07d 100644 --- a/lib/rubocop/cop/rspec/rails/minitest_assertions.rb +++ b/lib/rubocop/cop/rspec/rails/minitest_assertions.rb @@ -42,6 +42,14 @@ def replaced(node) "expect(#{@actual}).#{runner}(#{assertion}, #{@fail_message})" end end + + def negated?(node) + raise NotImplementedError + end + + def assertion + raise NotImplementedError + end end # :nodoc: