60847d6d5d
`have_a_version_with` and `have_a_version_with_changes` had the `versions` association call hardcoded. If `has_paper_trail` had the `versions` option set to something else (e.g: `has_paper_trail versions: :paper_trail_versions`) the matcher couldn't be used. This fixes that issue by dynamically fetching the association name from the `:versions_association_name` class attribute. |
||
---|---|---|
.. | ||
controllers | ||
generators | ||
models | ||
modules | ||
paper_trail | ||
requests | ||
support | ||
paper_trail_spec.rb | ||
rails_helper.rb | ||
spec_helper.rb |