From f9648d0e92a3577a055b76dfff455322bec934f5 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Wed, 3 Jul 2019 17:10:20 +0200 Subject: [PATCH] Render correct path in failure message --- lib/aruba/matchers/file/be_a_command_found_in_path.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/aruba/matchers/file/be_a_command_found_in_path.rb b/lib/aruba/matchers/file/be_a_command_found_in_path.rb index 14827715b..a5162d6c8 100644 --- a/lib/aruba/matchers/file/be_a_command_found_in_path.rb +++ b/lib/aruba/matchers/file/be_a_command_found_in_path.rb @@ -21,11 +21,11 @@ end failure_message do |actual| - format(%(expected that command "%s" can be found in PATH "#{ENV['PATH']}".), actual) + format(%(expected that command "%s" can be found in PATH "#{aruba.environment['PATH']}".), actual) end failure_message_when_negated do |actual| - format(%(expected that command "%s" cannot be found in PATH "#{ENV['PATH']}".), actual) + format(%(expected that command "%s" cannot be found in PATH "#{aruba.environment['PATH']}".), actual) end end