Skip to content

Commit

Permalink
Merge pull request #19 from akeneo/bugfix/export
Browse files Browse the repository at this point in the history
Fixed export service endpoint
  • Loading branch information
gquemener committed Mar 14, 2014
2 parents 3bb424b + 07f2711 commit 6b3d0f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Crowdin/Api/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Export extends AbstractApi
public function execute()
{
$path = sprintf(
"project/%s/export/all.zip?key=%s",
"project/%s/export?key=%s",
$this->client->getProjectIdentifier(),
$this->client->getProjectApiKey()
);
Expand Down
4 changes: 2 additions & 2 deletions spec/Crowdin/Api/ExportSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function it_builds_last_translations(HttpClient $http, Request $request, Respons
$content = '<?xml version="1.0" encoding="ISO-8859-1"?><success status="built"></success>';
$response->getBody(true)->willReturn($content);
$request->send()->willReturn($response);
$http->get('project/akeneo/export/all.zip?key=1234')->willReturn($request);
$http->get('project/akeneo/export?key=1234')->willReturn($request);
$this->execute()->shouldBe($content);
}

Expand All @@ -38,7 +38,7 @@ function it_skips_build_if_less_than_half_an_hour(HttpClient $http, Request $req
$content = '<?xml version="1.0" encoding="ISO-8859-1"?><success status="skipped"></success>';
$response->getBody(true)->willReturn($content);
$request->send()->willReturn($response);
$http->get('project/akeneo/export/all.zip?key=1234')->willReturn($request);
$http->get('project/akeneo/export?key=1234')->willReturn($request);
$this->execute()->shouldBe($content);
}
}

0 comments on commit 6b3d0f9

Please sign in to comment.