Commit a1434b1c authored by James Lopez's avatar James Lopez

fix specs

parent c7cbcd00
......@@ -101,8 +101,8 @@ module EE
@details[:entity_path] = @entity&.full_path
SecurityEvent.create(
author_id: @author.respond_to?(:id)? @author.id : -1,
entity_id: @entity.respond_to?(:id)? @entity.id : -1,
author_id: @author.respond_to?(:id) ? @author.id : -1,
entity_id: @entity.respond_to?(:id) ? @entity.id : -1,
entity_type: 'User',
details: @details
)
......
......@@ -33,7 +33,7 @@ describe Oauth::ApplicationsController do
application = build(:oauth_application)
application_attributes = application.attributes.merge(scopes: [])
expect { post :create, doorkeeper_application: application_attributes }.to change{ SecurityEvent.count }.by(1)
expect { post :create, doorkeeper_application: application_attributes }.to change { SecurityEvent.count }.by(1)
end
end
end
......
......@@ -72,8 +72,8 @@ describe Profiles::KeysController do
sign_in(user)
key = build(:key)
expect { post :create, key: key.attributes }.to change{ SecurityEvent.count }.by(1)
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