0
0
Fork 0

Adding more tests for helpers

This commit is contained in:
Eugen Rochko 2016-03-20 13:50:22 +01:00
parent b640f35621
commit 253ab26520
3 changed files with 95 additions and 26 deletions

View file

@ -3,7 +3,7 @@ module AtomBuilderHelper
@account.stream_entries.last ? (@account.updated_at > @account.stream_entries.last.created_at ? @account.updated_at : @account.stream_entries.last.created_at) : @account.updated_at
end
def entry(xml, is_root, &block)
def entry(xml, is_root = false, &block)
if is_root
root_tag(xml, :entry, &block)
else