Commit graph

42 commits

Author SHA1 Message Date
Reinier Balt
c6c51ee83c fix failing specs 2011-08-16 11:49:04 +02:00
Reinier Balt
e531907521 restore tests for cached not_done counts 2011-07-09 17:21:35 +02:00
Reinier Balt
8546ae5dfa fix test failures after the changes and refactorings 2011-07-09 17:19:12 +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
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
97e8602ef9 rebase to master to include i18n changes and fix merge conflicts 2011-02-03 18:19:26 +01:00
Reinier Balt
a832417c59 migrate toggle_check and destroy and defer and get the functional tests running again 2011-02-03 18:19:17 +01:00
Eric Allen
b50a1ce26f Fix a couple of test definitions to avoid false test failures
State should be unspecified to default to active

Fixes #977 (again)
2010-05-17 11:02:23 -04:00
Reinier Balt
cfc6d117b8 fix #1027. Several tests were broken because of the more strict validations on the recurring_todo model 2010-05-13 18:24:26 +02:00
Eric Allen
a022f449c1 Fixed failing tests
- Some fixtures added by Erik Ordway broke tests
- message:// links had an edge case I broke with 68701ada
- One test had a hard-coded id that changed

Closes #1019
2010-04-09 09:34:57 -04:00
Reinier Balt
022a94f686 fix test where today and show_from did not have the same timezone and add test for OneNote links inspired by the tests for Mail.app links 2010-01-13 21:17:17 +01:00
Patrice Neff
5299490c83 Linkify message:// URLs in notes. Those links are used by Mail.app on
Mac OS X to link to a mail message by message id.
2010-01-10 08:34:10 +08:00
Eric Allen
3e177c7b81 Remove some tests we can no longer run
See #965 for rationale and updates
2009-12-08 12:36:00 -05:00
Eric Allen
828201dfe0 Fix some failing tests 2009-12-07 22:43:00 -05: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
Michaël Witrant
c679593d1e fixed url parsing when they contain a slash in query string 2009-11-24 19:06:13 +08:00
Eric Allen
00da0b36aa Fixed a latent time zone bug in tests.
I created a new method accessible to all tests for forcing a user to the local time zone. The code was cribbed from Rails's rake tasks time:zones:local.
2009-10-13 23:39:36 -04:00
Eric Allen
fe52c0ab3c Fixed some failing tests and removed dead ones. 2009-10-13 23:38:25 -04:00
Eric Allen
66de0f9fd8 Don't set time to UTC for midnight in test.
This was causing an intermittent test failure in GMT-4.
2009-09-02 09:59:16 -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
Reinier Balt
6f82dd0fd3 fix failing test.
This was not due to a bug in tracks but a bug in the test
2009-03-02 15:01:50 +01:00
Eric Allen
e40b8ecbcf Need to save todo after updating state from project. Fixes #834. 2009-02-01 15:25:09 -05:00
piglop
8790a9b06d Fixed a small error in tests
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2009-01-28 17:03:37 +08:00
Reinier Balt
07426ebe54 a previous commit introduced a bug where hiding a project did not hide the todos in it. Fixes #832 2009-01-24 22:13:19 +01:00
Vitalie Lazu
5ee939ac47 Fixed exception in preference model when todo xml api is used with show_from attribute
Signed-off-by: bsag <butshesagirl@rousette.org.uk>
2009-01-11 23:37:14 +08: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
f3d7fac2a4 fix test where month+1 resulted in an error for december 2008-12-03 10:22:43 +01: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
4a98ee5669 several fixes to recurring todos and adds some named_scopes
fixes case where unmarking a complete todo which belongs to a recurring pattern results in two todos that both keep on recurring. With this fix a new todo will only be created when there are no active todos left belonging to that recurring pattern

fixes tests that failed because of previous commits

adds some named_scopes, inspired by http://railscasts.com/episodes/108
2008-11-28 16:39:50 +01:00
Reinier Balt
f21908a2a0 Fixes corner case where checking a monthly recurring todo complete on
the same day the todo comes from tickler, a new todo is created and not
put in the tickler for next month, but for today
2008-10-29 16:40:45 +01: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
eae4d0f6f1 add test to check if a new recurring todo ends up in the tickler 2008-10-02 10:17:40 +02:00
Eric Allen
778427405a Changed all Date objects to Datetimes and migrated everything appropriately. Tests & specs pass, but this still needs a thorough review. 2008-09-13 13:33:48 -07:00
Eric Allen
c85c5fd957 Little fix to make test pass 2008-09-13 13:29:09 -07:00
Reinier Balt
666f524b16 add functional tests for recurring todos
includes a test for rec todos with due date in future and show_from in past
2008-08-19 14:58:45 +02:00
Reinier Balt
952a73e39d Merge branch 'master' of git://github.com/bsag/tracks
Conflicts:

	config/routes.rb
2008-06-18 10:13:56 +02:00
Luke Melia
901a58f8a3 Upgraded to Rails 2.1. This can have wide ranging consequences, so please help track down any issues introduced by the upgrade. Requires environment.rb modifications.
Changes you will need to make:

 * In your environment.rb, you will need to update references to a few files per environment.rb.tmpl
 * In your environment.rb, you will need to specify the local time zone of the computer that is running your Tracks install.

Other notes on my changes:

 * Modified our code to take advantage of Rails 2.1's slick time zone support.
 * Upgraded will_paginate for compatibility
 * Hacked the Selenium on Rails plugin, which has not been updated in some time and does not support Rails 2.1
 * Verified that all tests pass on my machine, including Selenium tests -- I'd like confirmation from others, too.
2008-06-17 01:13:25 -04:00
bsag
2ac1a14c04 Merge branch 'svn-tracking' to svn rev 856
* svn-tracking:
  Removed outer tracks directory.
  regenerates compressed stylesheet
  adds a search textbox in the menu at top-right
  updates the compressed stylesheet because of changed of last commit
  adds search to tracks. you can search now on todos, projects and notes. This patch was contributed by Jeffrey Gipson. Thanks Jeffrey!

Conflicts:

	README
	README_FIRST
	app/controllers/todos_controller.rb
	app/helpers/todos_helper.rb
	app/models/todo.rb
	app/views/layouts/standard.html.erb
	app/views/notes/_notes.rhtml
	app/views/projects/_project.rhtml
	app/views/projects/_project_listing.rhtml
	app/views/todos/_todo.html.erb
	public/stylesheets/standard.css
	test/functional/todos_controller_test.rb
	tracks/README_FIRST
2008-05-24 16:53:10 +01:00
bsag
20940ff348 Removed outer tracks directory. 2008-05-24 15:57:18 +01:00
bsag
4cbf5a34d3 Removed superfluous 'tracks' directory at the root of the repository.
Testing commits to github.
2008-05-20 21:28:26 +01:00
Renamed from tracks/test/functional/todos_controller_test.rb (Browse further)