mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
c5e8669e9c
Simplify matching logic by adding a custom matcher which handles the task of normalisation of object IDs instead of calling gsub many times throughout the test code. This allows our tests to focus more on what needs to be tested instead obfuscating the tests with logic unrelated to what the test is trying to cover. It also allows making the normalisation code more robust so there is less chance of an accidental match or typo slipping in. The change also replaces the arbitary default object IDs with a string that makes it very obvious that it is just a placeholder. |
||
---|---|---|
.. | ||
core_ext | ||
ext | ||
support | ||
active_record_helper.rb | ||
colors_spec.rb | ||
formats_spec.rb | ||
methods_spec.rb | ||
misc_spec.rb | ||
objects_spec.rb | ||
spec_helper.rb |