Skip to content

Commit

Permalink
fixup! Improve be_a_command_found_in_path matcher and its tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Jan 21, 2023
1 parent c70d9e9 commit 1a04d29
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 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,15 +19,13 @@
end

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

failure_message_when_negated do |actual|
format(
%(expected that command "%s" cannot be found in PATH "#{aruba.environment['PATH']}".), actual
)
format(%(expected that command "%s" cannot be found in PATH "%s".),
actual, aruba.environment["PATH"])
end
end

Expand Down

0 comments on commit 1a04d29

Please sign in to comment.