Created
September 27, 2011 10:19
-
-
Save SlyNet/1244766 to your computer and use it in GitHub Desktop.
some gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Subject(typeof(AssetsHandler))] | |
public class When_compress_is_true_and_client_accepts_gzip : compression_spec | |
{ | |
Establish context = () => { | |
Compress = true; | |
AcceptEncoding = "gzip"; | |
}; | |
Because of = () => handler.ProcessRequest(httpContext.Object); | |
It should_set_gzip_response_filter = () => response.Filter.ShouldBeOfType<GZipStream>(); | |
It should_set_gzip_response_header = () => responseMock.Verify(x => x.AppendHeader("Content-Encoding", "gzip")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment