mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-26 20:08:51 +01:00
add test for cli xml builder
This commit is contained in:
parent
04560370f8
commit
4c73e260e3
2 changed files with 81 additions and 1 deletions
|
|
@ -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>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue