1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/spec/models/rsa_public_key_spec.rb

15 lines
314 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe RSAPublicKey do
subject { create :rsa_public_key }
describe '#pem' do
it { is_expected.to validate_presence_of :pem }
end
describe '#bits' do
it { is_expected.to validate_inclusion_of(:bits).in_array([2048, 4096]) }
end
end