7d4da81272
* install rubocop * 1961 automatic rubocop fixes * update rubocop.yml to ignore half of the remaining cops * rubocop lint warnings * random other warnings fixed
10 lines
284 B
Ruby
10 lines
284 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe Token, type: :model do
|
|
context '#generate_token' do
|
|
subject(:token) { Token.new }
|
|
it 'should generate an alphanumeric token of 32 characters' do
|
|
expect(token.send(:generate_token)).to match(/^[a-zA-Z0-9]{32}$/)
|
|
end
|
|
end
|
|
end
|