Commit graph

12 commits

Author SHA1 Message Date
Reinier Balt
e58379e81f This fixes failing tests when the timezone is different than utc
There were several problems:
* Time.now returns the systems time, not the users time
* fixtures do not translate dates from timezone to utc, but stores the
  date verbatim
* calling a controller will set the timezone to the preference of the
  current_user. So it could be changed while you do not realize this. I
  fixed the failing test, but problems could be elsewhere
2015-08-05 11:50:33 +02:00
Matteo Giaccone
ed9063bffa Fix #1722 2015-02-22 18:54:24 +00:00
Carsten Otto
dfe8735c0d rename repeating -> recurring, repeat -> recurrence 2015-02-10 16:25:27 +01:00
Dan Rice
ea0d40060a Remove support for deprecated password-hashing algorithm
* Remove all methods implementing and checking for the old algorithm
* Document a pre-upgrade step to check for remaining obsolete passwords
* Remove config.salt
2014-11-15 10:28:29 -05:00
Reinier Balt
18b7a467c1 fix #1400 where deleting a user will clean up tags and dependencies too 2014-09-23 16:35:45 +02:00
Reinier Balt
f8d4f85a8c add test for deleting all stuff of a user when this users is deleted. Fixes #1447 2014-09-23 15:47:07 +02:00
Dan Rice
2386e67dec Simplify requiring of test helpers 2014-05-16 18:03:13 -04:00
Dan Rice
d0cec167a8 Replace Timecop with new ActiveSupport helpers 2014-05-16 13:25:22 -04:00
Matt Rogers
1441d53808 Compare against an array instead of joining them into a string
No need to create a string out of them to get a good comparison
2013-10-15 20:03:01 -05:00
Matt Rogers
9fd4b845de Don't depend on the environment in the test 2013-10-15 20:02:52 -05:00
Matt Rogers
bae4b2a5b7 Require 'timecop' explicitly
This works around a problem with bundler's autorequires when not using
a standard Rails environment.
2013-10-15 20:02:52 -05:00
Reinier Balt
0bc9b0397a move tests to new directory 2013-05-11 23:13:16 +02:00
Renamed from test/unit/user_test.rb (Browse further)