Skip to content

Commit

Permalink
Specify automatically gzipped file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
laurilehmijoki committed Feb 16, 2015
1 parent 94a9109 commit 2166833
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/scala/s3/website/S3WebsiteSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ class S3WebsiteSpec extends Specification {
push()
noUploadsOccurred must beTrue
}

(".html" :: ".css" :: ".js" :: ".txt" :: ".ico" :: Nil).foreach((fileExtension) =>
s"gzip files that end with $fileExtension" in new BasicSetup {
config = "gzip: true"
setLocalFileWithContent((s"file.$fileExtension", "file contents"))
push()
sentPutObjectRequest.getMetadata.getContentEncoding must equalTo("gzip")
}
)
}

"""
Expand Down

0 comments on commit 2166833

Please sign in to comment.