super_diff
super_diff copied to clipboard
A more helpful way to view differences between complex data structures in RSpec.
First, thanks for your work on this gem! It was indispensable in a previous codebase, and I'd like to get it working with my current situation, but I'm having some...
In cases where the example passes, `SuperDiff::RSpec::AugmentedMatcher#description` appears to generate the description of the `actual` object via a call to `matcher_text_builder_args`: https://github.com/mcmire/super_diff/blob/805537f7b138a82ab45a64e09cac332bf21816c7/lib/super_diff/rspec/augmented_matcher.rb#L43 However, the `MatcherTextBuilders::Base#matcher_description` doesn't use said description: https://github.com/mcmire/super_diff/blob/805537f7b138a82ab45a64e09cac332bf21816c7/lib/super_diff/rspec/matcher_text_builders/base.rb#L30-L39...
We use [parallel_tests](https://github.com/grosser/parallel_tests) with rspec and rails. Once `super_diff/rspec` is required, most colors are stripped from the output. :( When uncommenting `Core::Formatters::ConsoleCodes` (in monkey_patches.rb), the color comes back (but is...
I would like to execute the diff power only on specifics tests. Something like: ```rb require 'super_diff/rspec-rails' RSpec.configure do |config| config.around(:each, :diff) do |example| SuperDiff.inline! { example.run } end end...
I was writing a little rake task to compare some data in our DB to fixture files, and found this module as the best one for doing pretty printed diffs...
Might be able to take some inspiration from this JavaScript library: https://github.com/concordancejs/concordance. Worth a mention in the README, anyway.
Each job defined in the GitHub workflow file takes between 7 and 9 minutes to run. The majority of slow tests are integration tests, which run the `rspec` command inside...
Here's some example output from RSpec: ``` 1) Albatross::Cli given --help prints the help screen Failure/Error: expect(stdout.string).to eq(
I'm getting a `JSON::ParserError` with the following code: ```ruby it "lets you compare a big float with another float" do expect(100_000.1).to eq 1.0 end ``` It looks like it's happening...
We want to make sure that `super_diff` works with as many versions of Ruby, Rails, and RSpec versions as possible. To this end, within the test suite for `super_diff`, we...