Skip to content

Commit 9650caa

Browse files
committed
Render correct path in failure message
1 parent 083dc8c commit 9650caa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/aruba/matchers/file/be_a_command_found_in_path.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
end
2020

2121
failure_message do |actual|
22-
format(%(expected that command "%s" can be found in PATH "#{ENV['PATH']}".), actual)
22+
format(%(expected that command "%s" can be found in PATH "#{aruba.environment['PATH']}".), actual)
2323
end
2424

2525
failure_message_when_negated do |actual|
26-
format(%(expected that command "%s" cannot be found in PATH "#{ENV['PATH']}".), actual)
26+
format(%(expected that command "%s" cannot be found in PATH "#{aruba.environment['PATH']}".), actual)
2727
end
2828
end
2929

0 commit comments

Comments
 (0)