Yoji Shidara
null+****@clear*****
Thu Sep 19 12:23:07 JST 2013
Yoji Shidara 2013-09-19 12:23:07 +0900 (Thu, 19 Sep 2013) New Revision: f7d809b1e49dc07bd1f4ae0acafab8e5692fb178 https://github.com/droonga/drntest/commit/f7d809b1e49dc07bd1f4ae0acafab8e5692fb178 Message: Use target_path instead of target Modified files: lib/drntest/test-runner.rb Modified: lib/drntest/test-runner.rb (+4 -5) =================================================================== --- lib/drntest/test-runner.rb 2013-09-19 12:12:52 +0900 (ec6d894) +++ lib/drntest/test-runner.rb 2013-09-19 12:23:07 +0900 (3f0553a) @@ -1,19 +1,18 @@ module Drntest class TestRunner - attr_reader :tester, :target + attr_reader :tester, :target_path def initialize(tester, target) @tester = tester - @target = target + @target_path = Pathname(target) end def run client = Droonga::Client.new(tag: tester.tag, port: tester.port) - envelope = JSON.parse(File.read(target)) - target_path = Pathname(target) + envelope = JSON.parse(target_path.read) expected_path = target_path.sub_ext(".expected") - print "#{target}: " + print "#{target_path}: " actual = client.connection.send_receive(envelope) unless actual puts "No response received" -------------- next part -------------- HTML����������������������������...Download