[rspec-users] pretty inspect for diff?

Roger Pack lists at ruby-forum.com
Tue Aug 23 13:47:22 EDT 2011


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-

-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list