Project

General

Profile

Actions

Bug #11363

closed

Fix tests for String#crypt so they pass on OpenBSD

Added by jeremyevans0 (Jeremy Evans) over 9 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-07-16 openbsd 51261) [x86_64-openbsd]
[ruby-core:70015]

Description

The String#crypt documentation states "the format and the result
are system and implementation dependent", so the tests should not
be checking for specific results. We should only be checking that
the method returns a string, that the results are different
if you use a different password or different salt, and the results
are the same if the using the encypted password as the salt
results in the same encrypted password.


Files

0001-Fix-tests-for-String-crypt.patch (2.02 KB) 0001-Fix-tests-for-String-crypt.patch jeremyevans0 (Jeremy Evans), 07/17/2015 09:29 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0