lib/rspec/activerecord/expectations/message_builder.rb
# using positive suffix from above can cause double negatives
using positive suffix from above can cause double negatives
using positive suffix from above can cause double negatives
def negative_suffix
        if matcher.comparison == :exactly
          "did so"
        elsif matcher.actual_count == 1
          "executed one"
        else
          "executed #{matcher.actual_count}"
        end
      end
def negative_suffix if matcher . comparison == :exactly "did so" elsif matcher . actual_count == 1 "executed one" else "executed #{matcher.actual_count}" end end
using positive suffix from above can cause double negatives
using positive suffix from above can cause double negatives