aboutsummaryrefslogtreecommitdiff
path: root/spec/unit/response/response_spec.rb
diff options
context:
space:
mode:
authorStormwind <stormwind@stormwinds-page.de>2012-11-24 15:35:23 +0100
committerStormwind <stormwind@stormwinds-page.de>2012-11-24 15:35:23 +0100
commit8a75f9462d9a3fd9eaebf37ce530b9c578983438 (patch)
treed6d7e68e23b340d83aa78024b171a47bfa070876 /spec/unit/response/response_spec.rb
parent5c45e1e20beeb33e3fef3a109ab7019e78d6c31b (diff)
Add an = at the end of the content_type method
Shall made use of this functionality more confortable, even if it's not a real attribute of this class.
Diffstat (limited to 'spec/unit/response/response_spec.rb')
-rw-r--r--spec/unit/response/response_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/response/response_spec.rb b/spec/unit/response/response_spec.rb
index 4b94dbe..59358c0 100644
--- a/spec/unit/response/response_spec.rb
+++ b/spec/unit/response/response_spec.rb
@@ -48,7 +48,7 @@ describe Zero::Response do
it "removes Content-Type, Content-Length and body on status code 204" do
subject.body.push '"foobar"'
- subject.content_type 'application/json'
+ subject.content_type = 'application/json'
subject.header['Content-Length'] = 8
subject.status = 204
@@ -59,7 +59,7 @@ describe Zero::Response do
it "removes Content-Type, Content-Length and body on status code 304" do
subject.body.push '"foobar"'
- subject.content_type 'application/json'
+ subject.content_type = 'application/json'
subject.header['Content-Length'] = 8
subject.status = 304
@@ -119,7 +119,7 @@ describe Zero::Response do
describe '#content_type' do
it "sets the Content-Type to the given value" do
- subject.content_type 'application/json'
+ subject.content_type = 'application/json'
subject.header['Content-Type'].should eq('application/json')
end