Code cleanup.
This commit is contained in:
parent
3462ad9aa0
commit
2a77855c5e
2 changed files with 9 additions and 2 deletions
|
@ -23,6 +23,13 @@ class TicketTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
test 'ticket sla' do
|
||||
|
||||
# cleanup
|
||||
delete = Sla.destroy_all
|
||||
assert( delete, "sla destroy_all" )
|
||||
delete = Ticket.destroy_all
|
||||
assert( delete, "ticket destroy_all" )
|
||||
|
||||
ticket = Ticket.create(
|
||||
:title => 'some title äöüß',
|
||||
:group => Group.lookup( :name => 'Users'),
|
||||
|
|
|
@ -118,8 +118,8 @@ class WorkingTimeTest < ActiveSupport::TestCase
|
|||
]
|
||||
tests.each { |test|
|
||||
TimeCalculation.config( test[:config] )
|
||||
dest_time = TimeCalculation.dest_time( test[:start], test[:diff] )
|
||||
assert_equal( dest_time, Time.parse( test[:dest_time] + ' UTC' ), 'dest time' )
|
||||
dest_time = TimeCalculation.dest_time( test[:start] + ' UTC', test[:diff] )
|
||||
assert_equal( dest_time.gmtime, Time.parse( test[:dest_time] + ' UTC' ), 'dest time' )
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue