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

fix specs

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