moneyadviceservice/mas-development_dependencies — pull request #9 by munckymagik (2014-10-17 12:13:26+00:00)
Title: Ensure the karma and npm commands' exit status is returned by Rake

Running tests using the `rake karma:run_once` task was silently ignoring build failures because the karma command's exit status was being ignored.

`system` was being used to run Karma. Although `system` returns false if
the command it executes returns a non-zero exit status, this was not
causing Rake to propagate the failure.

Swapped to use Rake's `sh` call instead.

http://www.ruby-doc.org/stdlib-2.1.2/libdoc/rake/rdoc/FileUtils.html#method-i-sh
http://www.ruby-doc.org/core-2.1.2/Kernel.html#method-i-system