{"repo":"splitwise/super_diff","free":true,"listed":false,"github":"https://github.com/splitwise/super_diff","clone":"git clone https://github.com/splitwise/super_diff.git","description":"A more helpful way to view differences between complex data structures in RSpec.","language":"Ruby","stars":1047,"topics":["rspec","ruby","testing"],"license":"MIT","category":"dev-tools","readme_excerpt":"SuperDiff [![Gem Version][version-badge]][rubygems] [![Build Status][gh-actions-badge]][gh-actions] ![Downloads][downloads-badge] [version-badge]: http://img.shields.io/gem/v/super diff.svg [rubygems]: http://rubygems.org/gems/super diff [gh-actions-badge]: https://img.shields.io/github/actions/workflow/status/splitwise/super diff/super diff.yml?branch=main [downloads-badge]: http://img.shields.io/gem/dtv/super diff.svg [hound]: https://houndci.com SuperDiff is a Ruby gem which is designed to display the differences between two objects of any type in a familiar and intelligent fashion. 📢 [See what's changed in recent versions.][changelog] [changelog]: ./CHANGELOG.md Introduction The primary motivation behind this gem is to vastly improve upon RSpec's built-in diffing capabilities. RSpec has many nice features, and one of them is that whenever you use a matcher such as eq , match , include , or have attributes , you will get a diff of the two data structures you are trying to match against. This is great if all you want to do is compare multi-line strings. But if you want to compare other, more \"real world\" kinds of values such as API or database data, then you are out of luck. Since [RSpec merely runs your expected and actual values through Ruby's PrettyPrinter library][rspec-differ-fail] and then performs a diff of these strings, the output it produces leaves much to be desired. [rspec-differ-fail]: https://github.com/rspec/rspec/blob/rspec-support-v3.13.2/rspec-support/lib","default_branch":null,"files":null,"tree":[],"storefront":"/r/splitwise","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/splitwise/super_diff/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}