mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-13 20:58:51 +01:00
fix regression where viewing a page for a single tag (like starred) did not work
and fix some test warnings/errors
This commit is contained in:
parent
67d574bf73
commit
cda75a0cc1
5 changed files with 19 additions and 14 deletions
|
|
@ -492,7 +492,7 @@ class TodosControllerTest < ActionController::TestCase
|
|||
recurring_todo_1 = RecurringTodo.find(1)
|
||||
set_user_to_current_time_zone(recurring_todo_1.user)
|
||||
todo_1 = Todo.find_by_recurring_todo_id(1)
|
||||
today = Time.now.at_midnight
|
||||
today = Time.zone.now.at_midnight
|
||||
|
||||
# change recurrence pattern to monthly and set show_from to today
|
||||
recurring_todo_1.target = 'show_from_date'
|
||||
|
|
@ -650,6 +650,7 @@ class TodosControllerTest < ActionController::TestCase
|
|||
get :tag, :name => "single"
|
||||
assert_equal true, assigns['single_tag'], "should recognize it is a single tag name"
|
||||
assert_equal "single", assigns['tag_expr'][0][0], "should store the single tag"
|
||||
assert_equal "single", assigns['tag_name'], "should store the single tag name"
|
||||
end
|
||||
|
||||
def test_get_boolean_expression_from_parameters_of_tag_view_multiple_tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue