Read more

Aruba: Stubbing binaries

Dominik Schöler
November 18, 2016Software engineer at makandra GmbH

When testing your command line application with Aruba Show archive.org snapshot , you might need to stub out other binaries you don't want to be invoked by your test.

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

Aruba Doubles Show archive.org snapshot is a library that was built for this purpose. It is not actively maintained, but works with the little fix below.

Installation

Install the gem as instructed by its README, then put this Before block somewhere into features/support:

Before do
  ArubaDoubles::Double.setup
  prepend_environment_variable 'PATH', ArubaDoubles::Double.bindir + ':'
end

This is required because the way Aruba Doubles patches the PATH environment variable is not supported Show archive.org snapshot (i.e. not noticed) by modern Arubas. By using Aruba's offical API method prepend_environment_variable, everything is in place.

Posted by Dominik Schöler to makandra dev (2016-11-18 10:27)