Commit 555a220d authored by Rémy Coutable's avatar Rémy Coutable

Reduce CE/EE diff in spec/controllers/profiles/keys_controller_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 020a4077
require 'spec_helper'
describe Profiles::KeysController do
let(:user) { create(:user) }
describe '#create' do
it 'logs the audit event' do
stub_licensed_features(extended_audit_events: true)
sign_in(user)
key = build(:key)
expect { post :create, key: key.attributes }.to change { SecurityEvent.count }.by(1)
end
end
end
......@@ -66,16 +66,4 @@ describe Profiles::KeysController do
end
end
end
describe '#create' do
it 'logs the audit event' do
stub_licensed_features(extended_audit_events: true)
sign_in(user)
key = build(:key)
expect { post :create, key: key.attributes }.to change { SecurityEvent.count }.by(1)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment