Also, for developers: two new gems are required for running tests: zentest and flexmock.
I applied James Kebinger's patch to add starred actions. These are implemented behind the scenes as a tag, so you can see all starred actions the way you would look at actions for any tag. Closes#387. Thanks, James!
Tests now rely the ZenTest gem. Thanks Ryan Davis & Eric Hodel.
I improved test coverage of a few models and created a test for the new helper methods to support the stars. (Helper method tests are made possible by ZenTest. The helper tests use mock objects to isolate them, courtesy of flexmock. Thanks, Jim Weirich!)
Modified a few selenium tests to work properly with mysql.
Upgraded the has_many_polymorphs plugin.
Add rails_rcov plugin to get test coverage numbers more easily.
Convert toggle_check action to correspond to a PUT instead of a POST (follows CRUD<->HTTP mapping better).
I'm having some issues running tests with sqlite3 that I haven't been able to figure out. I'll work on it, but wanted to check in so I can check out and work from the beach this weekend.
Happy holiday weekend to those of you in the U.S.!
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@544 a4c988fc-2ded-0310-b66e-134b36920a42
Updated some HTTP error status codes to play better with ActiveResource.
Added date_field_tag helper method and make it format the date properly.
Used beginning_of_day() instead of to_date().to_time().
Verified all tests pass on Win32.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@542 a4c988fc-2ded-0310-b66e-134b36920a42
However, the time it takes the browser to process the alphabetize Ajax response is unacceptably long. Not sure how to improve this yet.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@532 a4c988fc-2ded-0310-b66e-134b36920a42
Also fixed#486 (Inline edit of project title (from individual project page) fails). Thanks to James Kebinger for reporting the issue and for the patch.
N.B. This check-in requires the REMOVAL of one line from your environment.rb file. The line to be removed reads "require 'url_friendly_name'"
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@523 a4c988fc-2ded-0310-b66e-134b36920a42
Date field shortcuts:
(t) today
(-) or (<) previous day
(+) or (>) next day
([) previous week; (]) next week
({) previous month
(}) next month
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@519 a4c988fc-2ded-0310-b66e-134b36920a42
arguably just another representation of the same resources, so it seems to fit
the RESTful Rails paradigm to use an extension (.m) to switch on in the
respond_to stanza.
I needed some hackery to make this work. See my note in todos_controller for
a full explanation.
I also added a route to get to the mobile view by using 'domain.com/m'
Created some selenium tests for the mobile view, too.
In optimizing the data access for the mobile view, I ran into "a bug in rails
pagination":http://dev.rubyonrails.org/ticket/7885" and integrated a nice
pagination plugin from the Err the Blog guys
("will_paginate":http://errtheblog.com/post/929) to work around the issue.
NOTE that this changeset includes a new line in environment.rb.tmpl (at
the bottom). Be sure to copy this into your environment.rb file.
These changes fix#489 (cannot edit action using mobile interface).
Thanks for the bug report, lrbalt!
In the name of consistency, I made the argument to the block for all
respond_to calls 'format' (instead of the formerly cool 'wants').
Lastly, I added a link to the project's new contribute page to the footer of
the main web UI. Help us join the Mac on Intel world. :-)
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@517 a4c988fc-2ded-0310-b66e-134b36920a42
There's now a simple way to switch between forms rather than showing them both at once.
Plus, Tracks will cookie you when you switch forms so it remembers the last type of
authentication you used when you return.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@504 a4c988fc-2ded-0310-b66e-134b36920a42
Thanks to James Kebinger for his work sussing out compatibility issues with Rails 1.2.3 and the memory_test_fix plugin.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@499 a4c988fc-2ded-0310-b66e-134b36920a42