add travis yaml
update spec to be rubocop-friendly