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/ext
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
..
action_view_spec.rb Improves spec runner harness, switches to better env detection. 2015-01-02 13:20:18 -05:00
active_record_spec.rb Simplify matching logic in tests 2016-05-10 04:32:36 +10:00
active_support_spec.rb Improves spec runner harness, switches to better env detection. 2015-01-02 13:20:18 -05:00
mongo_mapper_spec.rb Simplify matching logic in tests 2016-05-10 04:32:36 +10:00
mongoid_spec.rb Simplify matching logic in tests 2016-05-10 04:32:36 +10:00
nobrainer_spec.rb Fix NoBrainer tests 2016-05-04 13:03:28 -04:00
nokogiri_spec.rb Add code coverage to AwesomePrint::Nokogiri when handles a empty NodeSet 2015-02-12 19:24:47 -02:00
ostruct_spec.rb Improves spec runner harness, switches to better env detection. 2015-01-02 13:20:18 -05:00
ripple_spec.rb Simplify matching logic in tests 2016-05-10 04:32:36 +10:00