2019-04-11 12:02:24 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-09 07:54:20 +00:00
|
|
|
describe QA::Runtime::Key::RSA do
|
2018-01-24 15:31:44 +00:00
|
|
|
describe '#public_key' do
|
|
|
|
subject { described_class.new.public_key }
|
|
|
|
|
|
|
|
it 'generates a public RSA key' do
|
2018-03-09 11:50:21 +00:00
|
|
|
expect(subject).to match(%r{\Assh\-rsa AAAA[0-9A-Za-z+/]+={0,3}})
|
2018-01-24 15:31:44 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|