Copy the module to your modules dir.
Add to your node definition:
include smartmontools
Install the dependencies using Bundler:
bundle install
Run the following command:
bundle exec rake spec
This module was found on https://git.sarava.org/?p=puppet-smartmontools.git;a=summary