Adam Meehan
08b16f155c
Rspec 3 syntax
2015-12-29 14:55:03 +11:00
Adam Meehan
1ddf0f1b0f
Remove all mongoid stuff and put in validates_timeliness-mongoid
2015-12-28 14:24:24 +11:00
Johnny Shields
99ae8fe7d7
Update for Mongoid 3:
...
- Now requires Mongoid 3.0 as minimum version (this is the only version to support Rails 3.2)
- Upgrade specs/helpers for Mongoid 3
- Support Mongoid aliased field names (e.g. field :foo, as: bar, type: String). Includes spec
- Support before_type_cast on Mongoid. No code change was required for this, only a spec change.
- There was one mongoid spec that was previously marked pending. I've found that it now works on Mongoid 3.
- Removed some Mongoid 2.3 and earlier hacks, which simplifies the Mongoid ORM code.
2013-07-24 11:05:01 +09:00
Jarl Friis
0d2c7ce554
Fix for running tests in non-Australian timezones
2013-04-30 19:56:19 +02:00
Adam Meehan
2225c747e1
DRYing up some specs
2012-08-26 16:38:00 +10:00
Adam Meehan
02fbdc6028
Fix for validates :timeliness form to add attributes to plugin set
2012-08-23 18:38:33 +10:00
Adam Meehan
091e7ecfa0
Tweak AR specs
2012-08-21 10:53:54 +10:00
Adam Meehan
62557e7e04
Allow any validated attribute to pass timezone aware check in AR
2012-08-09 12:53:29 +10:00
Adam Meehan
4aa20bb002
Stricter method signature for _timeliness_raw_value_for to take string
...
Add basic validation specs to each ORM shim
2012-03-29 13:00:28 +11:00
Chris Griego
2702ec3266
The ActiveRecord extension now returns the original return value for .define_attribute_methods
...
This helps other extensions, like PermalinkFu, which depend on the return value
2012-02-02 08:44:22 +11:00
Adam Meehan
3f4615e053
scope a spec to AR version
2012-02-01 21:25:05 +11:00
Adam Meehan
f8aeeca0a9
A fix for ActiveRecord 3.1.x and plugin parser not working together (issue #52 )
2012-01-26 22:44:01 +11:00
Adam Meehan
907fd3e439
Fix for Mongoid shim for reload which was nicely moved into a module to allow super
2011-12-10 17:46:35 +11:00
Adam Meehan
86b7bc4829
Fix before_type_cast for non-dirty attributes (issue #52 ).
...
Only use before_type_cast implementation if earlier than 3.1.0 which has
it's own working version for date/time fields now.
2011-09-21 21:28:53 +10:00
Adam Meehan
af9d6cdba4
Fix brokena and brittle tests
2011-09-18 18:33:30 +10:00
Adam Meehan
ea7c9ec7be
Type caste to Date for date columns in AR after parsing string in attribute writer
2011-04-27 07:37:26 +10:00
Adam Meehan
38457ec334
change spec config setup to use class method with_config
2011-01-29 16:33:37 +11:00
Adam Meehan
2c6df945ec
remove old parser and use timeliness gem
2010-10-14 18:57:53 +11:00
Adam Meehan
316086e76f
ruby 1.9.2 spec fixes for instance method checks
2010-10-14 07:55:35 +11:00
Adam Meehan
99704211a1
don't run mongoid spec if not loaded
2010-10-09 16:46:02 +11:00
Adam Meehan
7f297d576a
fix plugin parser timezone spec in AR
2010-09-24 13:45:55 +10:00
Adam Meehan
f41903a769
refactored to get attribute type from model types not validation type
...
reverts to behaviour of old version which allows you to define validations
of any type for sake of the values it is validating against
2010-09-24 12:00:15 +10:00
Adam Meehan
2efcff2fd4
spec cleaning
2010-09-23 21:34:32 +10:00
Adam Meehan
00f01402e0
reload to clear cached value. Fixes mongoid.
2010-09-23 21:34:01 +10:00
Adam Meehan
6220ae7b43
add validation method check to each ORM
2010-09-23 08:13:37 +10:00
Adam Meehan
90f0c45778
preliminary Mongoid support
2010-09-22 07:07:36 +10:00
Adam Meehan
48b42da85e
seperate attribute method specs into orm specific file
...
move ORM shims to orm folder
2010-09-21 20:12:40 +10:00