diff options
Diffstat (limited to 'spec/controllers/profiles/keys_controller_spec.rb')
-rw-r--r-- | spec/controllers/profiles/keys_controller_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/controllers/profiles/keys_controller_spec.rb b/spec/controllers/profiles/keys_controller_spec.rb index 63818337722..ed9022faf1b 100644 --- a/spec/controllers/profiles/keys_controller_spec.rb +++ b/spec/controllers/profiles/keys_controller_spec.rb @@ -14,13 +14,14 @@ RSpec.describe Profiles::KeysController do expires_at = 3.days.from_now expect do - post :create, params: { key: build(:key, expires_at: expires_at).attributes } + post :create, params: { key: build(:key, usage_type: :signing, expires_at: expires_at).attributes } end.to change { Key.count }.by(1) key = Key.last expect(key.expires_at).to be_like_time(expires_at) expect(key.fingerprint_md5).to be_present expect(key.fingerprint_sha256).to be_present + expect(key.usage_type).to eq('signing') end context 'with FIPS mode', :fips_mode do |