Fix the test_normalizes_commit_hash on Travis-CI
This commit is contained in:
@@ -8,8 +8,8 @@ context "Wiki" do
|
|||||||
|
|
||||||
test "normalizes commit hash" do
|
test "normalizes commit hash" do
|
||||||
commit = {:message => 'abc'}
|
commit = {:message => 'abc'}
|
||||||
name = @wiki.repo.config['user.name']
|
name = @wiki.repo.config['user.name'] || @wiki.default_committer_name
|
||||||
email = @wiki.repo.config['user.email']
|
email = @wiki.repo.config['user.email'] || @wiki.default_committer_email
|
||||||
committer = Gollum::Committer.new(@wiki, commit)
|
committer = Gollum::Committer.new(@wiki, commit)
|
||||||
assert_equal name, committer.actor.name
|
assert_equal name, committer.actor.name
|
||||||
assert_equal email, committer.actor.email
|
assert_equal email, committer.actor.email
|
||||||
|
|||||||
Reference in New Issue
Block a user