tests: add user events controller tests.
This commit is contained in:
7
test/factories/user_session.rb
Normal file
7
test/factories/user_session.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
FactoryBot.define do
|
||||
factory(:user_session) do
|
||||
ip_addr { create(:ip_geolocation).ip_addr }
|
||||
session_id { SecureRandom.hex(32) }
|
||||
user_agent { "Mozilla/5.0" }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user