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