Sha256: e5b1246034d6ad13b20cd487eead49e94f0c4aa89df878dae90e323dd54e6f1d

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

require 'rails_helper'

module TokenAction
  RSpec.describe TokenGenerator do
    describe '.included' do
      describe '#generate_token' do
        it 'should return a random alphanumeric string' do
          expect(Cat.generate_token(:token)).to match(/\A[A-Za-z0-9]{20}\z/)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
token_action-0.0.2 spec/token_action/concerns/token_generator_spec.rb