Commit graph

25 commits

Author SHA1 Message Date
Jan Stępień
e221264e74 Fixed User specs broken in commit b33044
Expressions '...should == @user' caused specs to fail because of

  ArgumentError in 'User authentication resets password'
  wrong number of arguments (0 for 1)

Replacing expectations declared for User objects with expectations declared
for their id fields solves the problem and doesn't change specs' logic.
2011-09-07 16:06:02 +02:00
Reinier Balt
c6c51ee83c fix failing specs 2011-08-16 11:49:04 +02:00
Eric Allen
a59ede5aad All specs passing now 2011-02-28 23:20:57 -08: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
Eric Allen
a256388323 Need to stub out destroyed? method in Rails 2.3.5 2009-12-08 13:36:57 -05:00
Eric Allen
6d3770c5fb Eliminated use of scenarios plugin
It doesn't work on Rails 2.3.5
2009-12-08 13:34:06 -05:00
Eric Allen
dbeb793214 Support dispatching emailed-in todos based on To: field as well as From: field. Setting configured in site.yml. 2009-03-29 19:44:43 -04:00
Reinier Balt
985aca1cfb fix failing spec 2009-03-01 22:18:03 +01:00
Reinier Balt
00e1d2994b Manually added patch from piglop. Thanks piglop!
Some specs were removed by 07426ebe54 but they only needed a little
change. Now Todo#update_state_from_project is tested again.
2009-01-28 10:11:15 +01: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
Reinier Balt
8ff7afb88c manual add fix of piglop to prevent todos from staying hidden forever 2009-01-21 13:36:26 +01:00
bsag
330c142172 Removed user specs relating to users in taggings table. User removed from taggings in migration 045. 2009-01-11 16:13:06 +00:00
Eric Allen
2eb9151d2e Fix failing specs 2009-01-02 01:54:56 -05: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
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
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
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