Skip to content

Commit

Permalink
Render correct path in failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Dec 24, 2021
1 parent d033a37 commit eace61f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/aruba/matchers/file/be_a_command_found_in_path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,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

Expand Down

0 comments on commit eace61f

Please sign in to comment.