Sha256: 6079ae5e0ab2f2c3d7053b62c2626f1e0df5ffc7a4aa7b54f0dc624857cb4345
Contents?: true
Size: 355 Bytes
Versions: 12
Compression:
Stored size: 355 Bytes
Contents
require_relative '../lib/inline_svg/id_generator' describe InlineSvg::IdGenerator do it "generates a hexencoded ID based on a salt and a random value" do randomizer = -> { "some-random-value" } expect(InlineSvg::IdGenerator.generate("some-base", "some-salt", randomness: randomizer)). to eq("at2c17mkqnvopy36iccxspura7wnreqf") end end
Version data entries
12 entries across 12 versions & 2 rubygems