Yoji Shidara
null+****@clear*****
Thu Sep 19 13:37:05 JST 2013
Yoji Shidara 2013-09-19 13:37:05 +0900 (Thu, 19 Sep 2013) New Revision: 8f0f11603295270228cfee3f56a8d4ea01a5aeee https://github.com/droonga/drntest/commit/8f0f11603295270228cfee3f56a8d4ea01a5aeee Message: Extract expected_path method Modified files: lib/drntest/test-runner.rb Modified: lib/drntest/test-runner.rb (+4 -1) =================================================================== --- lib/drntest/test-runner.rb 2013-09-19 12:55:29 +0900 (9a8323f) +++ lib/drntest/test-runner.rb 2013-09-19 13:37:05 +0900 (60cc5a5) @@ -15,7 +15,6 @@ module Drntest def run client = Droonga::Client.new(tag: tester.tag, port: tester.port) envelope = JSON.parse(target_path.read) - expected_path = target_path.sub_ext(".expected") print "#{target_path}: " actual = client.connection.send_receive(envelope) @@ -40,6 +39,10 @@ module Drntest end end + def expected_path + target_path.sub_ext(".expected") + end + def output_reject_file(actual_result) output_actual_result(actual_result, ".reject") end -------------- next part -------------- HTML����������������������������... Download