Skip to content

Commit 0675096

Browse files
test: yescrypt support in pw_hash
1 parent 5ca6b80 commit 0675096

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/functions/pw_hash_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,10 @@
111111
end
112112
end
113113
end
114+
115+
if 'test'.crypt('$y$j9T$') == '$y$j9T$$6tN6tt5mmPHxQskcf5Oi7Sb.1nKYbi5cOZgTiMq7Qw4'
116+
describe 'on systems with yescrypt support' do
117+
it { is_expected.to run.with_params('password', 'yescrypt', 'j9T$salt').and_return('$y$j9T$salt$Cw3H19laQT.rHIYMLvuoUzLb8st7PboO9rfxAylYPx9') }
118+
end
119+
end
114120
end

0 commit comments

Comments
 (0)