Skip to content

Commit c1a0797

Browse files
Allow "Z" suffix in og_modified_time smoke test
On machines configured to be in UTC (such as CI servers), git may format timestamps with a "Z" suffix rather than "+HH:MM".
1 parent 0daa0ba commit c1a0797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/helpers_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ module Foo; module Bar; module Qux; end; end; end
453453

454454
it "returns the commit time of the most recent commit in HEAD (smoke test)" do
455455
_(@helpers.og_modified_time).
456-
must_match %r"\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[-+]\d{2}:\d{2}\z"
456+
must_match %r"\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|[-+]\d{2}:\d{2})\z"
457457
end
458458

459459
it "returns nil when git is not installed or project is not a git repository" do

0 commit comments

Comments
 (0)