From 253ab265207c4e556470e4aa45fc502a5c9480ad Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 20 Mar 2016 13:50:22 +0100 Subject: Adding more tests for helpers --- app/helpers/atom_builder_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/helpers') diff --git a/app/helpers/atom_builder_helper.rb b/app/helpers/atom_builder_helper.rb index 0cfc438ac..40d1119c9 100644 --- a/app/helpers/atom_builder_helper.rb +++ b/app/helpers/atom_builder_helper.rb @@ -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 -- cgit