1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'str2saltedsha512 function' do
8 $o = str2saltedsha512('password')
9 notice(inline_template('str2saltedsha512 is <%= @o.inspect %>'))
12 apply_manifest(pp, :catch_failures => true) do |r|
13 expect(r.stdout).to match(/str2saltedsha512 is "[a-f0-9]{136}"/)
18 it 'handles no arguments'
19 it 'handles more than one argument'
20 it 'handles non strings'