Yoji Shidara
null+****@clear*****
Wed Sep 25 15:54:54 JST 2013
Yoji Shidara 2013-09-25 15:54:54 +0900 (Wed, 25 Sep 2013) New Revision: c1071332116d94e2f402190474843625be9ef998 https://github.com/droonga/drntest/commit/c1071332116d94e2f402190474843625be9ef998 Message: Show diff in JSON instead of pretty print Modified files: lib/drntest/test-runner.rb Modified: lib/drntest/test-runner.rb (+2 -2) =================================================================== --- lib/drntest/test-runner.rb 2013-09-19 17:27:18 +0900 (4de13ec) +++ lib/drntest/test-runner.rb 2013-09-25 15:54:54 +0900 (471c9f1) @@ -92,8 +92,8 @@ module Drntest end def show_diff(expected, actual) - expected_pretty = expected.pretty_inspect - actual_pretty = actual.pretty_inspect + expected_pretty = JSON.pretty_generate(expected) + actual_pretty = JSON.pretty_generate(actual) create_temporary_file("expected", expected_pretty) do |expected_file| create_temporary_file("actual", actual_pretty) do |actual_file| -------------- next part -------------- HTML����������������������������... Download