0
0

Add default value for header

This commit is contained in:
Stormwind 2012-11-18 15:02:07 +01:00
parent a76b08fbb3
commit 3c3850a02b
2 changed files with 8 additions and 1 deletions

View File

@ -11,6 +11,7 @@ module Zero
#
def initialize
@status = 200
@header = {}
end
# Sets the status.

View File

@ -30,3 +30,9 @@ describe Zero::Response, '#status' do
subject.status.should eq(200)
end
end
describe Zero::Response, '#header' do
it "must return an empty hash, if no header was set" do
subject.header.should eq({})
end
end