Add default value for header
This commit is contained in:
parent
a76b08fbb3
commit
3c3850a02b
|
@ -11,6 +11,7 @@ module Zero
|
||||||
#
|
#
|
||||||
def initialize
|
def initialize
|
||||||
@status = 200
|
@status = 200
|
||||||
|
@header = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
# Sets the status.
|
# Sets the status.
|
||||||
|
|
|
@ -30,3 +30,9 @@ describe Zero::Response, '#status' do
|
||||||
subject.status.should eq(200)
|
subject.status.should eq(200)
|
||||||
end
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user