Skip to content

Commit

Permalink
Fix bug with extracting email from meta-data commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rhburrows committed Apr 29, 2010
1 parent 375fda7 commit efb8f53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/reviewr/project.rb
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions spec/reviewr/project_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit efb8f53

Please sign in to comment.