Compare with timezone info in legacy specs

pull/3409/head
Oliver Günther 9 years ago
parent 0b0d17baec
commit b98241e1cd
  1. 4
      spec/legacy/unit/lib/redmine/scm/adapters/git_adapter_spec.rb
  2. 2
      spec/legacy/unit/repository_git_spec.rb

@ -149,7 +149,7 @@ describe OpenProject::Scm::Adapters::Git, type: :model do
assert_equal '4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8', last_rev.scmid
assert_equal '4a07fe31bffcf2888791f3e6cbc9c4545cefe3e8', last_rev.identifier
assert_equal 'Adam Soltys <asoltys@gmail.com>', last_rev.author
assert_equal '2009-06-24 05:27:38'.to_time, last_rev.time
assert_equal '2009-06-24 05:27:38 +0000'.to_time, last_rev.time
end
it 'should last rev with spaces in filename' do
@ -167,7 +167,7 @@ describe OpenProject::Scm::Adapters::Git, type: :model do
last_rev.author
assert_equal "#{str_felix_hex} <felix@fachschaften.org>",
last_rev.author
assert_equal '2010-09-18 19:59:46'.to_time, last_rev.time
assert_equal '2010-09-18 19:59:46 +0000'.to_time, last_rev.time
end
it 'test latin 1 path' do

@ -76,7 +76,7 @@ describe Repository::Git, type: :model do
assert_equal 'jsmith <jsmith@foo.bar>', commit.committer
assert_equal User.find_by_login('jsmith'), commit.user
# TODO: add a commit with commit time <> author time to the test repository
assert_equal '2007-12-14 09:22:52'.to_time, commit.committed_on
assert_equal '2007-12-14 09:22:52 +0000'.to_time, commit.committed_on
assert_equal '2007-12-14'.to_date, commit.commit_date
assert_equal '7234cb2750b63f47bff735edc50a1c0a433c2518', commit.revision
assert_equal '7234cb2750b63f47bff735edc50a1c0a433c2518', commit.scmid

Loading…
Cancel
Save