[rspec-users] pretty inspect for diff?

David Chelimsky dchelimsky at gmail.com
Tue Aug 23 14:10:45 EDT 2011


On Aug 23, 2011, at 12:47 PM, Roger Pack wrote:

> Hello.
> 
> I noticed this test "failed" message:
> 
> https://gist.github.com/1165975
> 
> The salient part is this diff:
> 
>       Diff:
> 
>       @@ -1,4 +1,4 @@
>       -{"blank_outs"=>[["0:00:56.0", "0:00:57.0"], ["0:01:05",
> "0:01:14.500"]],
>       +{"imdb_id"=>"tt1727587",
>         "mutes"=>[],
>       - "imdb_id"=>"t1727587"}
>       + "blank_outs"=>[["0:00:56", "0:00:57"], ["0:01:05",
> "0:01:14.500"]]}
> 
> 
> I believe that maybe could have been made to be more useful if it had
> been a diff of the "pretty_print" version of these two constructs.
> 
> Cheers!
> -roger-

Please post feature requests to the issue trackers: http://github.com/rspec/rspec-expectations/issues in this case. Much easier to keep track of everything that way.

Cheers,
David


More information about the rspec-users mailing list