Create own test agent.

This commit is contained in:
Martin Edenhofer 2015-05-03 13:38:13 +02:00
parent 6d5a02fd80
commit 386012a4a6

View file

@ -12,10 +12,10 @@ class SessionBasicTicketTest < ActiveSupport::TestCase
groups = Group.all groups = Group.all
agent1 = User.create_or_update( agent1 = User.create_or_update(
login: 'activity-stream-agent-1', login: 'session-basic-ticket-agent-1',
firstname: 'Session', firstname: 'Session',
lastname: 'activity stream ' + rand(99_999).to_s, lastname: 'session basic ' + rand(99_999).to_s,
email: 'activity-stream-agent1@example.com', email: 'session-basic-ticket-agent-1@example.com',
password: 'agentpw', password: 'agentpw',
active: true, active: true,
roles: roles, roles: roles,
@ -58,10 +58,10 @@ class SessionBasicTicketTest < ActiveSupport::TestCase
groups = Group.all groups = Group.all
agent1 = User.create_or_update( agent1 = User.create_or_update(
login: 'activity-stream-agent-1', login: 'session-basic-ticket-agent-1',
firstname: 'Session', firstname: 'Session',
lastname: 'activity stream ' + rand(99_999).to_s, lastname: 'session basic ' + rand(99_999).to_s,
email: 'activity-stream-agent1@example.com', email: 'session-basic-ticket-agent-1@example.com',
password: 'agentpw', password: 'agentpw',
active: true, active: true,
roles: roles, roles: roles,