Commit graph

67 commits

Author SHA1 Message Date
Reinier Balt
dd83040ea0 fix #1305 and #1309. Only check on show_from in the past when you change the show_from. This will not prevent a save of the todo when another change is made and show_from has some old date 2012-08-26 17:33:51 +02:00
Matt Rogers
b01c7878d1 Push conversion of a todo to a project down.
Refactor the conversion of a todo to a project and move it from the
TodosController to the Project model.
2012-08-14 19:33:54 -05:00
tim madden
51da342cdc harmonizing todo_tag_list and tag_list, using just the shorter tag_list 2012-06-27 13:56:56 -05:00
Reinier Balt
63175c115b all non-cucumber tests are passing 2012-04-30 13:56:41 +02:00
Reinier Balt
13b58f3a10 all unit and functional tests are passing 2012-04-30 13:56:40 +02:00
Reinier Balt
fd4fb6df9e get all unit tests running again. Seems we have some pretty old code in there :-) 2012-04-30 13:56:37 +02:00
Reinier Balt
a83c8b3f92 initial upgrade to rails 3.2.3 2012-04-30 13:56:33 +02:00
Reinier Balt
12d8915eda Get all non-cucumber tests passing 2012-04-12 12:47:25 +02:00
Reinier Balt
1a6edbe7c2 add some basic tests for tags noew we cannot rely on a tested gem 2012-04-11 13:39:12 +02:00
Reinier Balt
dcb155d90d fix #1271. Don't block an already blocked todo. Create tests for this case 2012-04-08 15:19:42 +02:00
Matt Rogers
67b8a11600 Merge pull request #62 from Popsch/review_tests_rebase
cucumber tests for the review mode
2012-02-10 08:27:54 -08:00
Matt Rogers
e7268fbaa2 Remove the double-quote custom validation
Rails has had SQL injection prevention since at least 2009 so we don't
need our version of it anymore.

Fixes ticket #1237
2012-02-02 22:28:26 -06:00
Sebastian Fischmeister
d14a2a808d cucumber tests for the review mode 2012-01-30 09:56:58 -05:00
Reinier Balt
f74370aab5 first refactoring of stats controller 2012-01-20 23:34:58 +01:00
Reinier Balt
58d8bc56d1 fix #827. You can now select todos with tags using OR and AND
/todos/tag/tagA,tagB?and=tagC will select all todos with (tagA or tagB) AND tagC
2011-10-28 19:33:51 +02:00
Jan Stępień
e5708f5ce7 Authenticate users with deprecated SHA-1 passwords 2011-09-07 16:06:02 +02:00
Jan Stępień
8e23d11054 Added User.uses_deprecated_password? method 2011-09-07 16:06:02 +02:00
Jan Stępień
95f0f71441 Hash passwords with BCrypt instead of SHA1
BCrypt is regarded as a more secure alternative to hashing using message
digest algorithms, such as MD5 and SHA families [0, 1, 2]. Apart from
built-in salting it is adaptable to the increasing power of modern
processing units, which makes it more secure against brute-force cracking.

This commit makes all passwords hashed using BCrypt. The session tokens
remain generated using SHA1. Tests were updated, `rake test:units` and
`rake test:functionals` didn't report any regressions.

[0] http://bcrypt.sourceforge.net/
[1] http://en.wikipedia.org/w/index.php?title=Bcrypt&oldid=439692871
[2] eab1c72/README.md
2011-09-07 16:05:52 +02:00
Matt Rogers
55bf457740 Allow projects to have commas in their name.
This removes the validation that checks to make sure there is no comma
in the name, and updates the tests to match.
2011-09-01 23:12:26 -05:00
Reinier Balt
c6c51ee83c fix failing specs 2011-08-16 11:49:04 +02:00
Reinier Balt
8546ae5dfa fix test failures after the changes and refactorings 2011-07-09 17:19:12 +02:00
Reinier Balt
01057af684 start modifying done view and do some refactoring 2011-07-09 17:19:11 +02:00
Reinier Balt
056dbf08a7 remove vendored gem and fix state model. Some old hacks did not work anymore on the newer aasm. reverted the hacks and fixed some tests 2011-06-10 23:17:22 +02:00
Stefan Richter
00819ce27b migrating to aasm - code part 2011-06-10 23:17:19 +02:00
Reinier Balt
91eeb0c6aa update require statements to fix path issue 2011-06-09 14:49:36 +02:00
Reinier Balt
3faac2514d fix failing test and finish all wip scenarios
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2011-05-08 22:09:27 +02:00
Reinier Balt
f018607049 fix tests
will fix cucumber tests after 2.0rc since it probably needs some magic to get them running using the jquery stuff
2011-02-25 15:24:43 +01:00
Reinier Balt
52a50b7463 bring back our changes to tagging_extensions to handle empty tags and handle numbers as tags 2011-02-08 22:24:06 +01:00
Reinier Balt
632c0e7255 fix all tests 2011-02-03 19:30:48 +01:00
Reinier Balt
87bb15460e Added tests for #975. This helped to narrow the real cause of #975 but doest not solve it. 2010-08-12 14:39:58 +02:00
Reinier Balt
932be0829b close #1035 and add a test for it 2010-08-06 16:48:21 +02:00
Reinier Balt
3d75cd2457 Fix #1045. The tests broke because of this fix cfc6d117b8. This exposed a new corner case that I fixed and created a test for. Also a small refactoring. 2010-07-29 16:37:22 +02:00
Reinier Balt
5c25e4569e fix #1002. every nth week was off by one week for recurring weekly todos. Thanks Thomas for spotting this.
Updated the wrong test too.
2010-05-02 18:16:29 +02:00
Eric Allen
0dfb1aafda The syntax of assert_difference has changed
You pass it a string now, instead of an object and a method
2009-12-07 18:41:23 -05:00
Eric Allen
fe52c0ab3c Fixed some failing tests and removed dead ones. 2009-10-13 23:38:25 -04:00
Reinier Balt
4ed5567885 get tests running again 2009-08-05 21:00:41 +02:00
Reinier Balt
7a7862221d get tests running again with zentest >= 4.0.0 2009-06-02 21:22:50 +02:00
piglop
4e1e18da0f fixed #781:
* added a "show always" radio to the recurring todo forms
* added a show_always flag to recurring todos
* created a migration to convert existing recurring todos where show_from_delta==0
* recurring todos where show_from_delta is 0 are now shown the same day they're due

Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2009-06-03 01:36:20 +08:00
Reinier Balt
2f8b454ac0 fix some failing tests 2009-04-19 00:18:12 +02:00
Reinier Balt
239b38cb15 fix for the two issues in #852
* the end date is prefilled with an incorrect formatted date
* if the radio for ends_on is not selected, but a date is entered, tracks incorrectly behaves as if ends_on was checked
2009-04-01 13:51:36 +02:00
Eric Allen
8076f4fe72 Fixed #814. We need to include recurring todo fixtures in any test suites that include todo fixtures 2009-01-23 14:20:03 -05:00
Reinier Balt
f79c28231b remove unused and unneccesary user_id from taggings table.
this way we can stay closer to the defaults of has_many_polymorphs thus making upgrading easier
2009-01-08 10:18:03 +01:00
Reinier Balt
0e68ded56a fix tags and fix tests 2008-12-22 23:26:38 +01:00
Reinier Balt
c618d35d3a first pass at restoring tag functionality 2008-12-22 20:55:32 +01:00
Eric Allen
611a53e668 No point in changing the name of the OpenID identity column in users table. Use the existing one. 2008-12-08 18:51:33 -05:00
Eric Allen
930999829b Re-write OpenID code to use new authentication plugin. Tested to work! 2008-12-08 00:52:57 -05:00
Luke Melia
35ae5fc431 Next step in upgrading Tracks to Rails 2.2. Some highlights:
* Ran rake rails:update
* Added old actionwebservice framework
* Updated RSpec and RSpec-Rails
* Removed asset_packager plugin (not compatible, Scott no longer maintaining), and replaced with bundle_fu. See the bundle_fu README for more info.
* Hacks to UJS and ARTS plugins, which are no longer supported. Probably should move off both UJS and RJS.
* Hack to flashobject_helper plugin (upgrade to Rails 2.2-compatible version if/when it comes out.)
* Hack to skinny-spec plugin, for Rails 2.2 compatibility. Should check for official release.
* Hacks to resource_feeder plugin, for Rails 2.2 compatibility. Should check for official release (not likely) or move off it.
* Addressed some deprecation warnings. More to come.
* My mobile mime type hackery is no longer necessary with new Rails features. Yay!
* Updated environment.rb.tmpl with changes

TODO:
* Restore view specs marked pending
* Fix failing integration tests.
* Try selenium tests.
* Investigate OpenID support.
* Address deprecation warnings.
* Consider moving parts of environment.rb to initializers
* Address annoying config.gem warning about highline gem
2008-11-30 00:34:15 -05:00
Reinier Balt
a3f23c60e4 fixes #786 where timezone handling of RoR screwed the algorithm to find the last sunday of march in 2009
Fix is a bit of a hack, see #786 for futher explanation.
2008-10-22 10:16:31 +02:00
Reinier Balt
ce671f23f4 fix bug introduced by last commit and add test for it
also refactor check_for_next_todo a bit to depend less on globals
2008-10-14 22:49:17 +02:00
Reinier Balt
c64bbb9e60 fix corner case for yearly repeating todos
also adds test for this case
2008-10-14 10:57:12 +02:00