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