Sha256: e92157ac56f1c6f33dd49cd3f8d146ae9c19c4e6f93bea89ba3712e9d1d44863
Contents?: true
Size: 502 Bytes
Versions: 22
Compression:
Stored size: 502 Bytes
Contents
# frozen_string_literal: true require "spec_helper" module Doorkeeper::OAuth::Helpers describe UniqueToken do let :generator do ->(size) { "a" * size } end it "is able to customize the generator method" do token = UniqueToken.generate(generator: generator) expect(token).to eq("a" * 32) end it "is able to customize the size of the token" do token = UniqueToken.generate(generator: generator, size: 2) expect(token).to eq("aa") end end end
Version data entries
22 entries across 22 versions & 3 rubygems