debian-mirror-gitlab/qa/spec/runtime/rsa_key.rb

10 lines
239 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
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