debian-mirror-gitlab/qa/spec/runtime/key/rsa_spec.rb
2021-01-03 14:25:43 +05:30

11 lines
276 B
Ruby

# frozen_string_literal: true
RSpec.describe QA::Runtime::Key::RSA do
describe '#public_key' do
subject { described_class.new.public_key }
it 'generates a public RSA key' do
expect(subject).to match(%r{\Assh\-rsa AAAA[0-9A-Za-z+/]+={0,3}})
end
end
end