super_diff icon indicating copy to clipboard operation
super_diff copied to clipboard

A more helpful way to view differences between complex data structures in RSpec.

Results 66 super_diff issues
Sort by recently updated
recently updated
newest added

When used with an array, these matchers don't assume that the array is in a particular kind of order. Therefore, the diff that SuperDiff produces for them will probably a...

🔧 Improvement

A couple of contributors have mentioned that they would have liked to propose some changes, except that they didn't understand the codebase. This isn't surprising, as there is quite a...

🔧 Improvement

By default, when SuperDiff is constructing a diff for two instances of the same PORO, it will list each instance variable in the class along with its value. As SuperDiff...

🔧 Improvement

Instead of just seeing `# ...` it would be nice to see `# ... 3 more items ...` or something like that. Absent of somehow showing a line number this...

💡 Feature Request

Currently, out-of-the-box `super_diff` will continue using colors in non-TTY environments such as CircleCI, etc. To avoid this, one can simply modify `spec_helper.rb` like this: ``` unless config.color SuperDiff.configure do |config|...

💡 Feature Request

I just stumbled upon a Node library called [`string.ify`](https://github.com/xpl/string.ify) that looks fairly interesting. It aims to format objects such that keys and values are aligned as much as possible. So...

🤔 Needs Decision

When an expectation that two Range objects are equal is violated, the super_diff output hides the values within the Ranges: ``` Failure/Error: expect(actual).to eq(expected) Expected # to eq #. Diff:...

🐛 Bug
:door: Good First Issue

This kind of test: ``` ruby expect(nil).to have_attributes(...) ``` raises an error like this: ``` NoMethodError: undefined method `[]' for nil:NilClass # ~/.asdf/installs/ruby/3.0.1/lib/ruby/gems/3.0.0/bundler/gems/super_diff-48a48b4f6b1c/lib/super_diff/helpers.rb:55:in `object_address_for' # ~/.asdf/installs/ruby/3.0.1/lib/ruby/gems/3.0.0/bundler/gems/super_diff-48a48b4f6b1c/lib/super_diff/operation_tree_flatteners/default_object.rb:8:in `open_token' # ~/.asdf/installs/ruby/3.0.1/lib/ruby/gems/3.0.0/bundler/gems/super_diff-48a48b4f6b1c/lib/super_diff/operation_tree_flatteners/collection.rb:11:in `build_tiered_lines'...

🐛 Bug

When I run a specific spec without supper diff, spec is passing When I run it with it, it is failing The spec is using a custom matcher, that is...

🐛 Bug

Please add dependency limitations. Your gem is incompatible with `rspec` before version `3.4.1` at least. https://github.com/rspec/rspec-support/blame/a0bc8606b33041dee1e1eae17def1e37ed4bf734/lib/rspec/support/object_formatter.rb Before `rspec 3.4.1`, the `ObjectFormatter` class was a module.

🐛 Bug