Sha256: c582aef30c2f03caaa06902f0ccbc0acbe4b08af438400920fd4783e4e7c5d3d

Contents?: true

Size: 297 Bytes

Versions: 2

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class SecureRandomTest < ActiveSupport::TestCase
  test 'random_number_string works' do
    assert_match(/^\d{4}$/, SecureRandom.random_number_string(4))
    assert_match(/^[0-9ABCDEF]{4}$/, SecureRandom.random_number_string(4, 16))
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omu-support-0.1.2 test/core_ext/securerandom_test.rb
omu-support-0.1.1 test/core_ext/securerandom_test.rb