Commit Graph

21 Commits

Author SHA1 Message Date
Adam Meehan
f30b09cf5b added time zone config for Time class needed when running specs using
vendored rails
2008-05-14 11:18:55 +10:00
Adam Meehan
b019f87625 reverted parser method as not working with raised exception 2008-05-14 09:42:34 +10:00
Adam Meehan
2284844426 added DateTimeInvalid class
rescue parse error only for DateTimeInvalid class
2008-05-14 09:35:12 +10:00
Adam Meehan
8e4c4098b7 added spec for values before epoch 2008-05-14 09:09:41 +10:00
Adam Meehan
fd8b8bad2e changed AR version constant to Rails 2008-05-14 08:59:55 +10:00
Adam Meehan
d22aa94b89 changed version check to Rails constant as AR VERSION not loaded by
default
changed time component validation to use dummy date parts to avoid pre
epoch issues
2008-05-14 08:54:50 +10:00
Adam Meehan
4ee24faad4 switched to using Rails::VERSION constant instead of AR which doesn't
seem to be available on rails boot
2008-05-05 09:41:16 +10:00
Adam Meehan
d3e278069e added validations specs 2008-05-05 09:12:36 +10:00
Adam Meehan
05a2d53b9a moved attribute methods modules into Old and New for rails versions 2008-05-05 09:11:43 +10:00
Adam Meehan
9a8a82c699 fixed restriction value conversion and added nil check 2008-05-03 18:12:51 +10:00
Adam Meehan
cae3d8cb84 added specs for validation 2008-05-03 15:52:40 +10:00
Adam Meehan
8751eddac6 adds module for rails 2.0.x to add reader method for date checking
includes right module based on AR version
better vendored rails check in spec_helper
2008-05-03 13:03:01 +10:00
Adam Meehan
3cf6e64747 fixed up AR 2.0.x timezone support 2008-05-03 08:44:41 +10:00
Adam Meehan
9eddf9c130 outputs whether gem or vendor AR being used 2008-05-03 08:17:45 +10:00
Adam Meehan
b8283a7c9c outputs AR version being tested 2008-05-03 08:12:44 +10:00
Adam Meehan
fe7310fc10 fixed read method to use value before type cast
added AR version checks in specs
include AR from vendor if in Rails app
2008-05-03 08:08:28 +10:00
Adam Meehan
7a34881472 Merge branch 'master' of ssh://ameehan@researchpath.com.au/var/git/validates-timeliness 2008-05-02 19:08:18 +10:00
Adam Meehan
8072fe733e set value nil if invalid 2008-05-02 19:07:48 +10:00
Adam Meehan
e0e8d0c9b4 removed active_support require as AR does it 2008-05-02 18:48:58 +10:00
Adam Meehan
dff7900c4a check for Time object before validating 2008-05-02 17:14:48 +10:00
Adam Meehan
591ea3126b first commit 2008-05-02 16:42:51 +10:00