From a47669027946d87538a12b85f3d0762c48d8ae46 Mon Sep 17 00:00:00 2001 From: Johan Holmberg <holmberg556@gmail.com> Date: Tue, 26 May 2015 21:05:09 +0200 Subject: [PATCH] implement get_path --- lib/cmdtest/testcase.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/cmdtest/testcase.rb b/lib/cmdtest/testcase.rb index f9bed0c..ea989b9 100644 --- a/lib/cmdtest/testcase.rb +++ b/lib/cmdtest/testcase.rb @@ -269,6 +269,12 @@ module Cmdtest #------------------------------ + def get_path + @_env_path + end + + #------------------------------ + def windows? Util.windows? end @@ -549,7 +555,7 @@ module Cmdtest msg << "ERROR: instead at EOF" else msg << "ERROR: instead followed by:" - for line in actual_lines[(offset+match_size)..-1] + for line in actual_lines[(offset+match_size)...(offset+expected_lines.size)] msg << " " + _show_line(line) end end