Highly common for Ruby libs to set the default rake task to run the test
suite. It's the first thing I do when looking at an app. Since its not
being used for anything else, figured I'd send a PR to add it.
Fix load path before requiring files so that user can type rake
without worrying about Bundler. Otherwise, it fails because it can't
find the napa files. Note that not doing this runs the risk of
invoking rake without Bundler and accidentally requiring the files
from the napa that is installed in your rubygems. Ie those files coming
from installed version, and other files coming from the dev lib.
If they sufficiently diverge on a dev's computer, it could cause a
bug that costs the dev a lot of time and frustration.
Add rake spec task to run the test suite. I added my preferred
options, but modify them at will (figured it was fine since
.travis.yml was setting colour)
Highly common for Ruby libs to set the default rake task to run the test suite. It's the first thing I do when looking at an app. Since its not being used for anything else, figured I'd send a PR to add it.
rake
without worrying about Bundler. Otherwise, it fails because it can't find the napa files. Note that not doing this runs the risk of invoking rake without Bundler and accidentally requiring the files from the napa that is installed in your rubygems. Ie those files coming from installed version, and other files coming from the dev lib. If they sufficiently diverge on a dev's computer, it could cause a bug that costs the dev a lot of time and frustration.rake spec
task to run the test suite. I added my preferred options, but modify them at will (figured it was fine since .travis.yml was setting colour)