Applied rubocop.

This commit is contained in:
Thorsten Eckel 2015-05-21 16:53:44 +02:00
parent 6511a70ff8
commit 651fa7951a

View file

@ -165,7 +165,7 @@ class TicketTest < ActiveSupport::TestCase
test 'ticket process_pending' do
ticket = Ticket.create(
title: "pending close test",
title: 'pending close test',
group: Group.lookup( name: 'Users'),
customer_id: 2,
state: Ticket::State.lookup( name: 'pending close' ),
@ -179,7 +179,7 @@ class TicketTest < ActiveSupport::TestCase
assert_equal( lookup_ticket.id, ticket.id, 'ticket.pending_time verify' )
Ticket.process_pending()
Ticket.process_pending
lookup_ticket = Ticket.find_by( 'pending_time <= ?', Time.zone.now )