From 588465766f191ad8ba0137f934e54de1e6b66b26 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Thu, 22 Oct 2015 09:25:53 +0200 Subject: [PATCH] legacy: avoid off by one error in spec that suddenly surfaced --- spec/unit/api/v2/http/request_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/api/v2/http/request_spec.rb b/spec/unit/api/v2/http/request_spec.rb index 0a4eec87..812064c7 100644 --- a/spec/unit/api/v2/http/request_spec.rb +++ b/spec/unit/api/v2/http/request_spec.rb @@ -39,7 +39,7 @@ describe Travis::Api::V2::Http::Request do 'branch' => 'master', 'message' => 'the commit message', 'compare_url' => 'https://github.com/svenfuchs/minimal/compare/master...develop', - 'committed_at' => json_format_time(Time.now.utc - 1.hour), + 'committed_at' => json_format_time(commit.committed_at), 'committer_email' => 'svenfuchs@artweb-design.de', 'committer_name' => 'Sven Fuchs', 'author_name' => 'Sven Fuchs',