mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 03:53:44 +08:00
493d437e79
* Remove outdated option
04078317ba
* Use the non-globally exposed RSpec syntax
https://github.com/rspec/rspec-core/pull/2803
* Use the non-globally exposed RSpec syntax, cont
https://github.com/rspec/rspec-core/pull/2803
* Comply to strict predicate matchers
See:
- https://github.com/rspec/rspec-expectations/pull/1195
- https://github.com/rspec/rspec-expectations/pull/1196
- https://github.com/rspec/rspec-expectations/pull/1277
12 lines
440 B
Ruby
12 lines
440 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'pbkdf2'
|
|
|
|
RSpec.describe Pbkdf2 do
|
|
# trivial test to ensure this does not regress during extraction
|
|
it "hashes stuff correctly" do
|
|
expect(Pbkdf2.hash_password('test', 'abcd', 100)).to eq("0313a6aca54dd4c5d82a699a8a0f0ffb0191b4ef62414b8d9dbc11c0c5ac04da")
|
|
expect(Pbkdf2.hash_password('test', 'abcd', 101)).to eq("c7a7b2891bf8e6f82d08cf8d83824edcf6c7c6bacb6a741f38e21fc7977bd20f")
|
|
end
|
|
end
|