removed_at in tests should be in utc

This commit is contained in:
Piotr Sarnacki 2015-01-12 12:56:04 +01:00
parent 5ca8b29f5a
commit 302927bad6

View File

@ -105,7 +105,7 @@ describe 'Jobs' do
end
it 'adds removed info if the log is removed' do
time = Time.new(2015, 1, 9, 12, 57, 31)
time = Time.new(2015, 1, 9, 12, 57, 31).utc
job.log.update_attributes(removed_at: time, removed_by: User.first)
headers = { 'HTTP_ACCEPT' => 'application/json; chunked=true; version=2' }
response = get "/jobs/#{job.id}/log", {}, headers