add cucumber scenarios for the new done pages

This commit is contained in:
Reinier Balt 2011-06-17 20:17:01 +02:00
parent e531907521
commit 5496b84642
8 changed files with 123 additions and 11 deletions

View file

@ -13,6 +13,18 @@ module NavigationHelpers
when /the home\s?page/
@source_view = "todos"
root_path(options)
when /the done page/
done_overview_path(options)
when /the done actions page for context "([^"]*)"/i
context = @current_user.contexts.find_by_name($1)
done_todos_context_path(context)
when /the done actions page for project "([^"]*)"/i
project = @current_user.projects.find_by_name($1)
done_todos_project_path(project)
when /the done actions page/
done_todos_path(options)
when /the all done actions page/
all_done_todos_path(options)
when /the statistics page/
@source_view = "stats"
stats_path(options)