[rspec-users] pretty inspect for diff?

1 view
Skip to first unread message

Roger Pack

unread,
Aug 23, 2011, 1:47:22 PM8/23/11
to rspec...@rubyforge.org
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/.
_______________________________________________
rspec-users mailing list
rspec...@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

David Chelimsky

unread,
Aug 23, 2011, 2:10:45 PM8/23/11
to rspec...@rubyforge.org
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

Reply all
Reply to author
Forward
0 new messages