diff options
Diffstat (limited to 'qa/spec/runtime/rsa_key.rb')
-rw-r--r-- | qa/spec/runtime/rsa_key.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/spec/runtime/rsa_key.rb b/qa/spec/runtime/rsa_key.rb new file mode 100644 index 00000000000..6d7ab4dcd2e --- /dev/null +++ b/qa/spec/runtime/rsa_key.rb @@ -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(%r{\Assh\-rsa AAAA[0-9A-Za-z+/]+={0,3}\z}) + end + end +end |