debian-mirror-gitlab/qa/spec/runtime/key/rsa_spec.rb

12 lines
270 B
Ruby
Raw Normal View History

2019-07-31 22:56:46 +05:30
# frozen_string_literal: true
2018-10-15 14:42:47 +05:30
describe QA::Runtime::Key::RSA do
2018-03-17 18:26:18 +05:30
describe '#public_key' do
subject { described_class.new.public_key }
it 'generates a public RSA key' do
2018-10-15 14:42:47 +05:30
expect(subject).to match(%r{\Assh\-rsa AAAA[0-9A-Za-z+/]+={0,3}})
2018-03-17 18:26:18 +05:30
end
end
end