1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00
awesome_print/spec
Gerard Caulfield c5e8669e9c
Simplify matching logic in tests
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.
2016-05-10 04:32:36 +10:00
..
core_ext Improves spec runner harness, switches to better env detection. 2015-01-02 13:20:18 -05:00
ext Simplify matching logic in tests 2016-05-10 04:32:36 +10:00
support Update NoBrainer awesome prints 2015-01-20 10:22:26 -05:00
active_record_helper.rb Improves spec runner harness, switches to better env detection. 2015-01-02 13:20:18 -05:00
colors_spec.rb Improves spec runner harness, switches to better env detection. 2015-01-02 13:20:18 -05:00
formats_spec.rb Fix typo in formats spec 2016-04-14 21:20:49 -03:00
methods_spec.rb Improves spec runner harness, switches to better env detection. 2015-01-02 13:20:18 -05:00
misc_spec.rb Fix Broken specs on Travis 2015-01-20 12:55:19 -02:00
objects_spec.rb Simplify matching logic in tests 2016-05-10 04:32:36 +10:00
spec_helper.rb Simplify matching logic in tests 2016-05-10 04:32:36 +10:00