Commit 2b467078 authored by Sean Arnold's avatar Sean Arnold Committed by Stan Hu

Fix broken spec by converting to time

parent b34dd89a
...@@ -227,7 +227,7 @@ describe Repository do ...@@ -227,7 +227,7 @@ describe Repository do
tree_builder = Rugged::Tree::Builder.new(rugged) tree_builder = Rugged::Tree::Builder.new(rugged)
tree_builder.insert({ oid: blob_id, name: "hello\x80world", filemode: 0100644 }) tree_builder.insert({ oid: blob_id, name: "hello\x80world", filemode: 0100644 })
tree_id = tree_builder.write tree_id = tree_builder.write
user = { email: "jcai@gitlab.com", time: Time.current, name: "John Cai" } user = { email: "jcai@gitlab.com", time: Time.current.to_time, name: "John Cai" }
Rugged::Commit.create(rugged, message: 'some commit message', parents: [rugged.head.target.oid], tree: tree_id, committer: user, author: user) Rugged::Commit.create(rugged, message: 'some commit message', parents: [rugged.head.target.oid], tree: tree_id, committer: user, author: user)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment