diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-01-24 23:31:44 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-01-24 23:31:44 +0800 |
commit | a17f4c23b706004c36242d6455c64f191e5082e5 (patch) | |
tree | 357d15e77b244fbadd385c6384ca195b4b400c71 /qa | |
parent | cc02eeff6eca6ad318c5147848dcbc4ddf87680d (diff) | |
download | gitlab-ce-a17f4c23b706004c36242d6455c64f191e5082e5.tar.gz |
Add an test for QA::Runtime::RSAKey
Diffstat (limited to 'qa')
-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..ff277b9077b --- /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(/\Assh\-rsa AAAA[0-9A-Za-z+\/]+={0,3}\z/) + end + end +end |