0
0
Fork 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

@ -29,4 +29,10 @@ describe Zero::Response, '#status' do
it "must return 200, if no status code was set" do
subject.status.should eq(200)
end
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