str2saltedsha512_spec.rb 549 B

1234567891011121314151617181920
  1. require 'spec_helper_acceptance'
  2. describe 'str2saltedsha512 function' do
  3. describe 'success' do
  4. pp = <<-DOC
  5. $o = str2saltedsha512('password')
  6. notice(inline_template('str2saltedsha512 is <%= @o.inspect %>'))
  7. DOC
  8. it 'works with "y"' do
  9. apply_manifest(pp, :catch_failures => true) do |r|
  10. expect(r.stdout).to match(%r{str2saltedsha512 is "[a-f0-9]{136}"})
  11. end
  12. end
  13. end
  14. describe 'failure' do
  15. it 'handles no arguments'
  16. it 'handles more than one argument'
  17. it 'handles non strings'
  18. end
  19. end