Skip to content

Commit

Permalink
Remove use of pp in DifferDispatcher
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]}
```
  • Loading branch information
sidane committed Apr 25, 2024
1 parent 8d1bee9 commit 4f52104
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 4f52104

Please sign in to comment.