Skip to content

Commit

Permalink
Remove use of pp in DifferDispatcher (#242)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
sidane authored Apr 25, 2024
1 parent 8d1bee9 commit fc346d8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/super_diff/core/differ_dispatcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit fc346d8

Please sign in to comment.