Premature calculation of `actual` description when generating matcher description
jas14 opened this issue · 0 comments
jas14 commented
In cases where the example passes, SuperDiff::RSpec::AugmentedMatcher#description
appears to generate the description of the actual
object via a call to matcher_text_builder_args
:
However, the MatcherTextBuilders::Base#matcher_description
doesn't use said description:
This can incur a substantial delay in cases where the inspection of the actual
object takes a lot of time (e.g. #160).