mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 15:22:58 +00:00
fix multiparam extension
This commit is contained in:
@@ -10,11 +10,10 @@ describe ValidatesTimeliness::Extensions::MultiparameterHandler do
|
||||
it 'should return string value for invalid datetimes' do
|
||||
instantiate_time_object('birth_datetime', [2000, 2, 31, 12, 0, 0]).should == '2000-02-31 12:00:00'
|
||||
end
|
||||
|
||||
# This is giving an error in AR for undefined @@default_timezone.
|
||||
# it 'should return Time value for valid datetimes' do
|
||||
# instantiate_time_object('birth_datetime', [2000, 2, 28, 12, 0, 0]).should be_find_of(Time)
|
||||
# end
|
||||
|
||||
it 'should return Time value for valid datetimes' do
|
||||
instantiate_time_object('birth_datetime', [2000, 2, 28, 12, 0, 0]).should be_kind_of(Time)
|
||||
end
|
||||
|
||||
def instantiate_time_object(name, values)
|
||||
employee.send(:instantiate_time_object, name, values)
|
||||
|
||||
Reference in New Issue
Block a user