diff options
author | Stormwind <stormwind@stormwinds-page.de> | 2013-01-04 16:46:21 +0100 |
---|---|---|
committer | Stormwind <stormwind@stormwinds-page.de> | 2013-01-04 16:46:21 +0100 |
commit | f4fa025b4d9d9efbb6443fc79948e8182c188363 (patch) | |
tree | 9cb1bcbd7d0501870d43a9b87e9202f259c5480e /spec | |
parent | ff1a8220f8ca044433381f6671af73d77b49541c (diff) |
Add check if body is empty on 204 and 304 in specs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/response/response_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/response/response_spec.rb b/spec/unit/response/response_spec.rb index bc5199a..0cdd099 100644 --- a/spec/unit/response/response_spec.rb +++ b/spec/unit/response/response_spec.rb @@ -55,6 +55,7 @@ describe Zero::Response do value = subject.to_a value[1].should eq({}) # Headers + value[2].should eq([]) # Body end it "removes Content-Type, Content-Length and body on status code 304" do @@ -66,6 +67,7 @@ describe Zero::Response do value = subject.to_a value[1].should eq({}) # Headers + value[2].should eq([]) # Body end end |