add test for cli xml builder

This commit is contained in:
Reinier Balt 2013-09-18 22:54:46 +02:00
parent 04560370f8
commit 4c73e260e3
2 changed files with 81 additions and 1 deletions

View file

@ -33,7 +33,7 @@ module TracksCli
end
def xml_for_context(context_name, context_id)
if context_name && context_name.empty?
if context_name && !context_name.empty?
return "<context><name>#{context_name}</name></context>"
else
return "<context_id>#{context_id}</context_id>"