diff --git a/commands/pull_request_tpl.go b/commands/pull_request_tpl.go index a55b9d9f0a58ff2802a31fe81f16cff42906e6db..87d1951ee7365193c7d46c0932459a4f0f53da99 100644 --- a/commands/pull_request_tpl.go +++ b/commands/pull_request_tpl.go @@ -3,7 +3,7 @@ package commands import ( "bytes" "fmt" - "html/template" + "text/template" "regexp" "strings" ) diff --git a/features/pull_request.feature b/features/pull_request.feature index ec4deb854529ddc43afab564267d3776d16c663b..61a2f0770bc78a4fc5712c566d3b08d03a4beba6 100644 --- a/features/pull_request.feature +++ b/features/pull_request.feature @@ -77,14 +77,14 @@ Feature: hub pull-request """ post('/repos/mislav/coral/pulls') { halt 400 if request.content_charset != 'utf-8' - assert :title => 'This is somewhat of a longish title that does not get wrapped and references #1234', + assert :title => 'This is somewhat of a longish title that does not get wrapped & references #1234', :body => nil json :html_url => "the://url" } """ Given I am on the "master" branch pushed to "origin/master" When I successfully run `git checkout --quiet -b topic` - Given I make a commit with message "This is somewhat of a longish title that does not get wrapped and references #1234" + Given I make a commit with message "This is somewhat of a longish title that does not get wrapped & references #1234" And the "topic" branch is pushed to "origin/topic" When I successfully run `hub pull-request` Then the output should contain exactly "the://url\n"