mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Merge pull request #2551 from TracksApp/test_locales
Add testing for locales
This commit is contained in:
commit
e79ed7fdec
2 changed files with 24 additions and 0 deletions
|
@ -10,6 +10,12 @@ class TodosControllerTest < ActionController::TestCase
|
|||
# not done / deferred counts
|
||||
############################
|
||||
|
||||
def test_locale_index
|
||||
login_as(:other_user_email)
|
||||
get :index
|
||||
asser_response 200
|
||||
end
|
||||
|
||||
def test_not_done_counts
|
||||
login_as(:admin_user)
|
||||
get :index
|
||||
|
|
18
test/fixtures/preferences.yml
vendored
18
test/fixtures/preferences.yml
vendored
|
@ -51,3 +51,21 @@ sms_user_prefs:
|
|||
show_project_on_todo_done: true
|
||||
sms_email: 5555555555@tmomail.net
|
||||
sms_context_id: 13
|
||||
|
||||
other_user_email_prefs:
|
||||
id: 4
|
||||
user_id: 6
|
||||
staleness_starts: 7
|
||||
locale: fi
|
||||
date_format: "%d/%m/%Y"
|
||||
title_date_format: "%A, %d %B %Y"
|
||||
show_number_completed: 5
|
||||
show_completed_projects_in_sidebar: true
|
||||
show_hidden_contexts_in_sidebar: true
|
||||
show_hidden_projects_in_sidebar: true
|
||||
week_starts: 1
|
||||
due_style: 0
|
||||
refresh: 0
|
||||
time_zone: "London"
|
||||
verbose_action_descriptors: false
|
||||
show_project_on_todo_done: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue