lib/audited/rspec_matchers.rb in audited-4.10.0 vs lib/audited/rspec_matchers.rb in audited-5.0.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Audited
module RspecMatchers
# Ensure that the model is audited.
#
# Options:
@@ -76,12 +78,12 @@
alias_method :failure_message_when_negated, :negative_failure_message
def description
description = "audited"
description += " associated with #{@options[:associated_with]}" if @options.key?(:associated_with)
- description += " only => #{@options[:only].join ', '}" if @options.key?(:only)
- description += " except => #{@options[:except].join(', ')}" if @options.key?(:except)
- description += " requires audit_comment" if @options.key?(:comment_required)
+ description += " only => #{@options[:only].join ", "}" if @options.key?(:only)
+ description += " except => #{@options[:except].join(", ")}" if @options.key?(:except)
+ description += " requires audit_comment" if @options.key?(:comment_required)
description
end
protected