Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
change test to expect appropriate content type for po/pot downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Dec 5, 2012
1 parent eb3a33c commit 910ab28
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -69,8 +69,8 @@ protected void onResponse(EnhancedMockHttpServletResponse response)
{
assertThat(response.getStatus(), is(200)); // Ok
assertHeaderValue(response, "Content-Disposition", "attachment; filename=\"document.txt.po\"");
assertThat(response.getContentType(), is(MediaType.APPLICATION_OCTET_STREAM));
assertPoFileCorrect( response.getContentAsString() );
assertThat(response.getContentType(), is(MediaType.TEXT_PLAIN));
assertPoFileCorrect( response.getContentAsString() );
assertPoFileContainsTranslations( response.getContentAsString(),
"hello world", "" );
}
Expand All @@ -94,8 +94,8 @@ protected void onResponse(EnhancedMockHttpServletResponse response)
{
assertThat(response.getStatus(), is(200)); // Ok
assertHeaderValue(response, "Content-Disposition", "attachment; filename=\"document-2.txt.po\"");
assertThat(response.getContentType(), is(MediaType.APPLICATION_OCTET_STREAM));
assertPoFileCorrect( response.getContentAsString() );
assertThat(response.getContentType(), is(MediaType.TEXT_PLAIN));
assertPoFileCorrect( response.getContentAsString() );
assertPoFileContainsTranslations( response.getContentAsString(),
"mssgId1", "mssgTrans1",
"mssgId2", "mssgTrans2",
Expand Down

0 comments on commit 910ab28

Please sign in to comment.