diff options
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/response/response_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/response/response_spec.rb b/spec/unit/response/response_spec.rb index 0bb0c4e..21d6e31 100644 --- a/spec/unit/response/response_spec.rb +++ b/spec/unit/response/response_spec.rb @@ -53,6 +53,13 @@ describe Zero::Response do subject.header['Content-Length'].should eq(0) end + + it "sets the content_length to the size of the message body" do + subject.body = ['foo', 'bar'] + subject.content_length + + subject.header['Content-Length'].should eq(6) + end end end
\ No newline at end of file |