Getting functional tests running.

This commit is contained in:
Reinier Balt 2012-04-19 00:02:42 +02:00
parent fd433d76d8
commit 76340b780c
22 changed files with 267 additions and 216 deletions

View file

@ -101,7 +101,7 @@ module ApplicationHelper
# actions or multiple actions
#
def count_undone_todos_phrase(todos_parent)
@controller.count_undone_todos_phrase(todos_parent)
controller.count_undone_todos_phrase(todos_parent)
end
def count_undone_todos_phrase_text(todos_parent)
@ -268,5 +268,13 @@ module ApplicationHelper
all_done_todos_path
end
end
def get_list_of_error_messages_for(model)
error_messages = ""
if model.errors.any?
list_of_messages = model.errors.full_messages.inject("") { |all, msg| all += content_tag(:li, msg) }
error_messages = content_tag(:ul, list_of_messages)
end
end
end