Commit Graph

21 Commits

Author SHA1 Message Date
Adam Meehan
402a6b6e3e Change multiparamter extension to use AR type classes
Multiparamter extension used to do a lot of crappy work to ensure that
the invalid Date dates were not accepted, but also to store a
before_type_cast value in cases when it was invalid. We no longer need
to handle the before_type_cast value as ActiveRecord does that nicely.

Now we just ensure values to cast with a invalid date parts is not
accepted.
2018-05-18 08:58:00 +10:00
Adam Meehan
076714d648 update hash syntax in spec 2018-05-16 12:54:32 +10:00
Adam Meehan
d57c64dcc2 Getting with the RSpec times 2015-12-30 12:06:42 +11:00
Adam Meehan
0444bdc650 Datetime select extension fixes with help from @johncarney's fork 2015-12-29 15:49:18 +11:00
Adam Meehan
08b16f155c Rspec 3 syntax 2015-12-29 14:55:03 +11:00
Jarl Friis
0d2c7ce554 Fix for running tests in non-Australian timezones 2013-04-30 19:56:19 +02:00
Adam Meehan
f11255a7a3 Fix multiparameter extension to not allow partial dates as per ActiveRecord implementation. 2012-03-26 20:22:09 +11:00
Adam Meehan
43f49076fb Changed multiparameter implementation to be more like AR 3.1 but backwards compatible
Specs improved to not make direct call to multiparameter method.
2012-02-02 09:00:14 +11:00
Chris Griego
64a7440de4 Fix multiparameter extension to work with ActiveRecord 3.1 2012-02-02 08:54:39 +11:00
Adam Meehan
11ae94cba6 Cleanup DateTimeSelect extension specs 2011-09-18 18:53:38 +10:00
Adam Meehan
e7b503ae4f Fix DateTimeSelect extension to use integers from param values.
Change extension spec to use string params.
2011-09-18 18:34:23 +10:00
Thilo Rusche
b4c1a39343 added support for :discard_day in form helpers 2011-05-13 17:13:11 +01:00
Adam Meehan
1c70af4dba simplify data select spec 2011-02-23 20:05:09 +11:00
Adam Meehan
38457ec334 change spec config setup to use class method with_config 2011-01-29 16:33:37 +11:00
Adam Meehan
3bf364a395 reluctantly overriding whole execute_callstack_for_multiparameter_attributes method
this fixes issue for Date column types. Damn method is just too
unwieldly and should be refactored in Rails.
2010-12-04 16:29:05 +11:00
Adam Meehan
29057c41f7 use Person for non-ORM specific specs 2010-09-21 20:14:51 +10:00
Adam Meehan
ab8d680383 fix multiparam extension 2010-09-16 22:39:56 +10:00
Adam Meehan
4028413631 multiparameter value handler 2010-08-03 23:22:27 +10:00
Adam Meehan
0f41671b32 multiparameter extension for AR 2010-08-03 22:59:29 +10:00
Adam Meehan
3c8e5c16fc shorthand spec_helper require 2010-08-02 18:13:21 +10:00
Adam Meehan
fabb2be7af date/time select extension 2010-08-02 16:58:03 +10:00