Fix chefspec deprecation warnings
Fix rubocop violation