Sha256: 6800d7550f0dad4dfdf1a63c53d7909ed55a7a5a5f170f9b30e461d6f8051fd6

Contents?: true

Size: 378 Bytes

Versions: 8

Compression:

Stored size: 378 Bytes

Contents

require 'spec_helper'

describe Zxcvbn::Tester do
  let(:tester) { Zxcvbn::Tester.new }

  TEST_PASSWORDS.each do |password|
    it "gives back the same score for #{password}" do
      ruby_result = tester.test(password)
      js_result = js_zxcvbn(password)

      ruby_result.score.should eq js_result["score"]
      #ruby_result.to_json.should eq js_result
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
zxcvbn-js-4.4.3 spec/tester_spec.rb
zxcvbn-js-4.4.2 spec/tester_spec.rb
zxcvbn-rails-4.4.1.1 spec/tester_spec.rb
zxcvbn-rails-4.4.1.0 spec/tester_spec.rb
zxcvbn-js-4.4.1 spec/tester_spec.rb
zxcvbn-js-4.4.0 spec/tester_spec.rb
zxcvbn-js-4.3.0 spec/tester_spec.rb
zxcvbn-js-4.2.0.1 spec/tester_spec.rb