Adding more tests for helpers
This commit is contained in:
parent
b640f35621
commit
253ab26520
3 changed files with 95 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue