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 b8f78a1ca..91d2b2219 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 @@ -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