Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / str2saltedsha512_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'str2saltedsha512 function' do
4   describe 'success' do
5     pp = <<-DOC
6       $o = str2saltedsha512('password')
7       notice(inline_template('str2saltedsha512 is <%= @o.inspect %>'))
8     DOC
9     it 'works with "y"' do
10       apply_manifest(pp, :catch_failures => true) do |r|
11         expect(r.stdout).to match(%r{str2saltedsha512 is "[a-f0-9]{136}"})
12       end
13     end
14   end
15   describe 'failure' do
16     it 'handles no arguments'
17     it 'handles more than one argument'
18     it 'handles non strings'
19   end
20 end