Sha256: 3911c615c183e32a04cc0aa4a608617852011bede0ac9a09d9e0f24fd47bc377
Contents?: true
Size: 510 Bytes
Versions: 5
Compression:
Stored size: 510 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 = described_class.generate(generator: generator) expect(token).to eq("a" * 32) end it "is able to customize the size of the token" do token = described_class.generate(generator: generator, size: 2) expect(token).to eq("aa") end end end
Version data entries
5 entries across 5 versions & 2 rubygems