Commit 40c2dcb3 authored by James Lopez's avatar James Lopez

fix specs

parent 2ee6f60a
module Emails
class CreateService < ::Emails::BaseService
def execute
@user.emails.create(email: @email)
email = @user.emails.create(email: @email)
log_audit_event(action: :create)
email
end
end
end
......@@ -29,7 +29,7 @@ describe Oauth::ApplicationsController do
describe 'POST #create' do
it 'logs the audit event' do
stub_licensed_features(extended_audit_events: true)
sign_in(user)
application = build(:oauth_application)
......
......@@ -474,6 +474,8 @@ describe API::Users do
end
it "updates user with new password and forces reset on next login" do
stub_licensed_features(extended_audit_events: true)
put api("/users/#{user.id}", admin), password: '12345678'
expect(response).to have_http_status(200)
......
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