From 302927bad66b349cc81ec12e17e4a208c1a795f7 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Mon, 12 Jan 2015 12:56:04 +0100 Subject: [PATCH] removed_at in tests should be in utc --- spec/integration/v2/jobs_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/v2/jobs_spec.rb b/spec/integration/v2/jobs_spec.rb index 128a2a72..bbaabefd 100644 --- a/spec/integration/v2/jobs_spec.rb +++ b/spec/integration/v2/jobs_spec.rb @@ -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