And add tests for empty string & null

This commit is contained in:
Anton Batenev
2013-07-09 20:19:10 +04:00
parent 4e04c4dddd
commit b0dbb0ea13
3 changed files with 10 additions and 2 deletions

View File

@ -87,7 +87,7 @@ module Email
value = header[1].strip
result[name] = value if name.length > 0 && value.length > 0
end
}
} if !string.nil?
result
end