From b9dad327074daae266daeaf42272e061bf9c92bb Mon Sep 17 00:00:00 2001 From: Ryan Fowler Date: Tue, 1 May 2012 17:02:50 -0500 Subject: [PATCH] Fix the test_normalizes_commit_hash on Travis-CI --- test/test_committer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_committer.rb b/test/test_committer.rb index d8b046db..0b65736b 100644 --- a/test/test_committer.rb +++ b/test/test_committer.rb @@ -8,8 +8,8 @@ context "Wiki" do test "normalizes commit hash" do commit = {:message => 'abc'} - name = @wiki.repo.config['user.name'] - email = @wiki.repo.config['user.email'] + name = @wiki.repo.config['user.name'] || @wiki.default_committer_name + email = @wiki.repo.config['user.email'] || @wiki.default_committer_email committer = Gollum::Committer.new(@wiki, commit) assert_equal name, committer.actor.name assert_equal email, committer.actor.email