Eric Allen
05f21ebba2
Spec and fix bug #776 by using auto_link instead of my dumb regex
2008-10-03 10:19:41 -04:00
Eric Allen
ba9a9370cc
Merge branch 'timezones' of git://github.com/epall/tracks into master.
...
Re-wrote all Date-related code to use Datetimes, created a migration to get rid of all date columns in the database, and got rid of Time.now calls that were not time zone-aware. Lots of time zone goodness!
2008-09-21 18:24:12 -07:00
Eric Allen
3647d79587
Overhaul of Time.now stuff because Time.now is unaware of time zones. Need to use Time.zone.now (Time.now.utc works fine when dealing with the database, since it is *always* in UTC)
2008-09-21 18:13:21 -07:00
Eric Allen
f52a2eafa8
A few fixes after more thorough review.
2008-09-21 18:13:21 -07:00
Eric Allen
3a21739be9
Merge branch 'mailer' of git://github.com/epall/tracks into master
2008-09-21 09:46:31 -07:00
Eric Allen
3006f73cb7
Bugfix: active_contexts wasn't actually working.
2008-09-21 09:32:11 -07:00
Eric Allen
2c3b3d9d69
Fixed bug where todos got pulled out of tickler too early if user's timezone was behind UTC.
2008-09-06 19:47:58 -07:00
Simon Rozet
f446effcc5
update user scenario to work with sqlite3
2008-06-24 17:11:48 +02:00
Simon Rozet
e8d1ba2633
refactored context model spec to be a bit more 'rspec-ish' and to use skinny_spec and scenarios
2008-06-23 21:39:16 +02:00
Simon Rozet
d62cbf4592
make custom spec macro `it_should_validate_length_of' accepts a message argument
2008-06-23 21:38:41 +02:00
Simon Rozet
2672c1e2b7
crreate some basic scenarios
2008-06-23 21:38:04 +02:00
Simon Rozet
b13df20630
Install the `scenarios' plugin and require it in spec_helper
...
It is IMO a great alternative to fixtures.
See http://github.com/aiwilliams/scenarios/tree/master and further commits
for more information.
2008-06-23 21:34:21 +02:00
Simon Rozet
6d54923e2f
Spec for `todo' model
2008-06-23 12:28:38 +02:00
Simon Rozet
44b7f56c23
Spec for user model
2008-06-23 12:28:03 +02:00
Simon Rozet
0376067cf4
Install the `skinny_spec' plugin.
...
It's basically a set of rspec macro allowing you to write thing such as
`it_should_find_and_assign :users'.
See <http://github.com/rsl/skinny_spec/tree/master > for more informations.
It's recommended to install the `ruby2ruby' gem to have nicer error messages, but
it is not required to work.
@@ update README_FOR_DEVELOPERS accordingly.
2008-06-23 10:03:56 +02:00
Simon Rozet
60b986a5b9
fix a failing spec for context model
2008-06-23 10:03:55 +02:00
bsag
eb53865ff9
Context model specs completed. Using fixtures for some examples currently, but might convert to mocks in future. Specs now offer same coverage as Test::Unit tests for Context model.
2008-06-23 10:02:17 +02:00
bsag
1dc03195d0
Initial work on specs for models - Context model spec started.
2008-06-23 10:02:17 +02:00
Luke Melia
2c09db45c5
Added Rspec and Webrat plugins and started porting Selenium on Rails tests to Rspec Plain Text Stories driving Webrat driving Selenium.
2008-06-23 10:02:17 +02:00