From fc346d819bf07dc3da011e129ef2517aaa4d6048 Mon Sep 17 00:00:00 2001 From: sidane Date: Thu, 25 Apr 2024 19:02:39 +0100 Subject: [PATCH] Remove use of `pp` in DifferDispatcher (#242) Was causing the following output when running tests in Rails app using super_diff: ``` {:available_classes=> [SuperDiff::ActiveRecord::Differs::ActiveRecordRelation, SuperDiff::ActiveSupport::Differs::HashWithIndifferentAccess, SuperDiff::RSpec::Differs::CollectionContainingExactly, SuperDiff::RSpec::Differs::CollectionIncluding, SuperDiff::RSpec::Differs::HashIncluding, SuperDiff::RSpec::Differs::ObjectHavingAttributes, SuperDiff::Basic::Differs::Array, SuperDiff::Basic::Differs::Hash, SuperDiff::Basic::Differs::TimeLike, SuperDiff::Basic::Differs::DateLike, SuperDiff::Basic::Differs::MultilineString, SuperDiff::Basic::Differs::CustomObject, SuperDiff::Basic::Differs::DefaultObject]} ``` ![available_classes_output](https://github.com/mcmire/super_diff/assets/53722/78e5c98c-a5a7-43aa-8248-aff6263c2105) --- lib/super_diff/core/differ_dispatcher.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/super_diff/core/differ_dispatcher.rb b/lib/super_diff/core/differ_dispatcher.rb index 5321ff49..6f0a368c 100644 --- a/lib/super_diff/core/differ_dispatcher.rb +++ b/lib/super_diff/core/differ_dispatcher.rb @@ -10,8 +10,6 @@ class DifferDispatcher ) def call - pp available_classes: available_classes - if resolved_class resolved_class.call(expected, actual, indent_level: indent_level) elsif raise_if_nothing_applies?