Add an test for QA::Runtime::RSAKey
This commit is contained in:
parent
cc02eeff6e
commit
a17f4c23b7
1 changed files with 9 additions and 0 deletions
9
qa/spec/runtime/rsa_key.rb
Normal file
9
qa/spec/runtime/rsa_key.rb
Normal 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
|
Loading…
Reference in a new issue