Add an test for QA::Runtime::RSAKey

This commit is contained in:
Lin Jen-Shin 2018-01-24 23:31:44 +08:00
parent cc02eeff6e
commit a17f4c23b7
1 changed files with 9 additions and 0 deletions

View File

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