Permalink
Browse files

Fix bug with extracting email from meta-data commit

  • Loading branch information...
rhburrows committed Apr 29, 2010
1 parent 375fda7 commit efb8f53e81c747090fa4861ee76ae96a06714701
Showing with 5 additions and 5 deletions.
  1. +1 −1 lib/reviewr/project.rb
  2. +4 −4 spec/reviewr/project_spec.rb
View
@@ -73,7 +73,7 @@ def delete_remote_review_branch
def requester_email
msg = git.log(1)
if msg
m = msg.match(/^requested_by: ([^\s]+)/)
m = msg.match(/requested_by: ([^\s]+)/)
m && m[1]
end
end
@@ -143,10 +143,10 @@ module Reviewr
"Author: Cody McCoder",
"Date: Tue Apr 27 22:35:55 2010 -0700",
"",
"Code Review Request",
"===================",
"requested_by: coder@site.com",
"requested_from: reviewer@site.com"
" Code Review Request",
" ===================",
" requested_by: coder@site.com",
" requested_from: reviewer@site.com"
].join("\n"))
project.requester_email.should == "coder@site.com"
end

0 comments on commit efb8f53

Please sign in to comment.