lib/rubocop/cop/rspec/rails/negation_be_valid.rb in rubocop-rspec-2.23.0 vs lib/rubocop/cop/rspec/rails/negation_be_valid.rb in rubocop-rspec-2.23.1

- old
+ new

@@ -4,9 +4,13 @@ module Cop module RSpec module Rails # Enforces use of `be_invalid` or `not_to` for negated be_valid. # + # @safety + # This cop is unsafe because it cannot guarantee that + # the test target is an instance of `ActiveModel::Validations``. + # # @example EnforcedStyle: not_to (default) # # bad # expect(foo).to be_invalid # # # good