Skip to content

Commit 9e8bccf

Browse files
author
Evgeniy Guseletov
committed
Green test
1 parent 9234e8e commit 9e8bccf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Github/Api/Repository/Contents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function show($username, $repository, $path = null, $reference = null)
4444
{
4545
$url = 'repos/'.urlencode($username).'/'.urlencode($repository).'/contents';
4646
if (null !== $path) {
47-
$url .= '/'.urlencode($path);
47+
$url .= '/'.rawurlencode($path);
4848
}
4949

5050
return $this->get($url, array(

test/Github/Tests/Api/Repository/ContentsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function shouldDownloadForSpacedPath()
120120
$api = $this->getApiMock();
121121
$api->expects($this->once())
122122
->method('get')
123-
->with('repos/mads379/scala.tmbundle/contents/Syntaxes/Simple%20Build%20Tool.tmLanguage', array('ref' => null))
123+
->with('repos/mads379/scala.tmbundle/contents/Syntaxes%2FSimple%20Build%20Tool.tmLanguage', array('ref' => null))
124124
->will($this->returnValue($getValue));
125125

126126
$this->assertEquals($expectedValue, $api->download('mads379', 'scala.tmbundle', 'Syntaxes/Simple Build Tool.tmLanguage'));

0 commit comments

Comments
 (0)