Skip to content

Commit

Permalink
refactor: throw error if interface methods are not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jan 27, 2024
1 parent 4fe5c51 commit 1379d3e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/rubocop/cop/rspec/rails/minitest_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1379d3e

Please sign in to comment.