gitlab-org--gitlab-foss/qa/spec/runtime/rsa_key.rb

10 lines
239 B
Ruby
Raw Normal View History

2018-01-24 10:31:44 -05:00
describe QA::Runtime::RSAKey do
describe '#public_key' do
subject { described_class.new.public_key }
it 'generates a public RSA key' do
2018-01-27 00:35:53 -05:00
expect(subject).to match(%r{\Assh\-rsa AAAA[0-9A-Za-z+/]+={0,3}\z})
2018-01-24 10:31:44 -05:00
end
end
end