Commit 16abde42 authored by James Lopez's avatar James Lopez

fix more spec failures

parent 12fc5458
...@@ -101,8 +101,8 @@ module EE ...@@ -101,8 +101,8 @@ module EE
@details[:entity_path] = @entity&.full_path @details[:entity_path] = @entity&.full_path
SecurityEvent.create( SecurityEvent.create(
author_id: @author&.id || -1, author_id: @author.respond_to?(:id)? @author.id : -1,
entity_id: @entity&.id || -1, entity_id: @entity.respond_to?(:id)? @entity.id : -1,
entity_type: 'User', entity_type: 'User',
details: @details details: @details
) )
......
...@@ -90,7 +90,7 @@ describe Audit::Details do ...@@ -90,7 +90,7 @@ describe Audit::Details do
end end
it 'humanizes the removal action' do it 'humanizes the removal action' do
expect(described_class.humanize(action)).to eq('Removed deploy key') expect(described_class.humanize(action)).to eq('Changed email from a@b.com to c@b.com')
end end
end 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