summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-01-24 23:31:44 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-01-24 23:31:44 +0800
commita17f4c23b706004c36242d6455c64f191e5082e5 (patch)
tree357d15e77b244fbadd385c6384ca195b4b400c71
parentcc02eeff6eca6ad318c5147848dcbc4ddf87680d (diff)
downloadgitlab-ce-a17f4c23b706004c36242d6455c64f191e5082e5.tar.gz
Add an test for QA::Runtime::RSAKey
-rw-r--r--qa/spec/runtime/rsa_key.rb9
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