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 Jul 3, 2019
1 parent 1689cee commit 2a773b1
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 @@ -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

Expand Down

0 comments on commit 2a773b1

Please sign in to comment.