mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-05 23:41:48 +01:00
add cucumber scenarios for the new done pages
This commit is contained in:
parent
e531907521
commit
5496b84642
8 changed files with 123 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue