Applied rubocop cop 'Style/IndentationWidth'.

This commit is contained in:
Thorsten Eckel 2015-07-03 17:37:27 +02:00
parent b9b39014ae
commit d52167f417

View file

@ -5,73 +5,73 @@ class ModelTest < ActiveSupport::TestCase
test 'references test' do test 'references test' do
# create base # create base
groups = Group.where( name: 'Users' ) groups = Group.where( name: 'Users' )
roles = Role.where( name: %w(Agent Admin) ) roles = Role.where( name: %w(Agent Admin) )
agent1 = User.create_or_update( agent1 = User.create_or_update(
login: 'model-agent1@example.com', login: 'model-agent1@example.com',
firstname: 'Model', firstname: 'Model',
lastname: 'Agent1', lastname: 'Agent1',
email: 'model-agent1@example.com', email: 'model-agent1@example.com',
password: 'agentpw', password: 'agentpw',
active: true, active: true,
roles: roles, roles: roles,
groups: groups, groups: groups,
updated_at: '2015-02-05 16:37:00', updated_at: '2015-02-05 16:37:00',
updated_by_id: 1, updated_by_id: 1,
created_by_id: 1, created_by_id: 1,
) )
organization1 = Organization.create_if_not_exists( organization1 = Organization.create_if_not_exists(
name: 'Model Org 1', name: 'Model Org 1',
updated_at: '2015-02-05 16:37:00', updated_at: '2015-02-05 16:37:00',
updated_by_id: 1, updated_by_id: 1,
created_by_id: 1, created_by_id: 1,
) )
organization2 = Organization.create_if_not_exists( organization2 = Organization.create_if_not_exists(
name: 'Model Org 2', name: 'Model Org 2',
updated_at: '2015-02-05 16:37:00', updated_at: '2015-02-05 16:37:00',
updated_by_id: agent1.id, updated_by_id: agent1.id,
created_by_id: 1, created_by_id: 1,
) )
roles = Role.where( name: 'Customer' ) roles = Role.where( name: 'Customer' )
customer1 = User.create_or_update( customer1 = User.create_or_update(
login: 'model-customer1@example.com', login: 'model-customer1@example.com',
firstname: 'Model', firstname: 'Model',
lastname: 'Customer1', lastname: 'Customer1',
email: 'model-customer1@example.com', email: 'model-customer1@example.com',
password: 'customerpw', password: 'customerpw',
active: true, active: true,
organization_id: organization1.id, organization_id: organization1.id,
roles: roles, roles: roles,
updated_at: '2015-02-05 16:37:00', updated_at: '2015-02-05 16:37:00',
updated_by_id: 1, updated_by_id: 1,
created_by_id: 1, created_by_id: 1,
) )
customer2 = User.create_or_update( customer2 = User.create_or_update(
login: 'model-customer2@example.com', login: 'model-customer2@example.com',
firstname: 'Model', firstname: 'Model',
lastname: 'Customer2', lastname: 'Customer2',
email: 'model-customer2@example.com', email: 'model-customer2@example.com',
password: 'customerpw', password: 'customerpw',
active: true, active: true,
organization_id: nil, organization_id: nil,
roles: roles, roles: roles,
updated_at: '2015-02-05 16:37:00', updated_at: '2015-02-05 16:37:00',
updated_by_id: agent1.id, updated_by_id: agent1.id,
created_by_id: 1, created_by_id: 1,
) )
customer3 = User.create_or_update( customer3 = User.create_or_update(
login: 'model-customer3@example.com', login: 'model-customer3@example.com',
firstname: 'Model', firstname: 'Model',
lastname: 'Customer3', lastname: 'Customer3',
email: 'model-customer3@example.com', email: 'model-customer3@example.com',
password: 'customerpw', password: 'customerpw',
active: true, active: true,
organization_id: nil, organization_id: nil,
roles: roles, roles: roles,
updated_at: '2015-02-05 16:37:00', updated_at: '2015-02-05 16:37:00',
updated_by_id: agent1.id, updated_by_id: agent1.id,
created_by_id: agent1.id, created_by_id: agent1.id,
) )
references = Models.references('User', agent1.id) references = Models.references('User', agent1.id)