mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-10 01:24:19 +01:00
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@501 a4c988fc-2ded-0310-b66e-134b36920a42
23 lines
624 B
Ruby
23 lines
624 B
Ruby
require File.dirname(__FILE__) + '/../test_helper'
|
|
|
|
class PreferenceTest < Test::Unit::TestCase
|
|
fixtures :users, :preferences
|
|
|
|
def setup
|
|
assert_equal "test", ENV['RAILS_ENV']
|
|
assert_equal "change-me", Tracks::Config.salt
|
|
@admin_user = User.find(1)
|
|
@other_user = User.find(2)
|
|
end
|
|
|
|
def test_time_zone
|
|
assert_equal 'London', @admin_user.preference.time_zone
|
|
assert_equal @admin_user.preference.tz, TimeZone['London']
|
|
end
|
|
|
|
def test_show_project_on_todo_done
|
|
assert @other_user.preference.show_project_on_todo_done
|
|
assert !@admin_user.preference.show_project_on_todo_done
|
|
end
|
|
|
|
end
|