lib/audited/rspec_matchers.rb in audited-5.1.0 vs lib/audited/rspec_matchers.rb in audited-5.2.0
- old
+ new
@@ -219,10 +219,10 @@
end
def association_exists?
!reflection.nil? &&
reflection.macro == :has_many &&
- reflection.options[:class_name] == Audited.audit_model.name
+ reflection.options[:class_name] == Audited.audit_class.name
end
end
end
end