mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-23 14:27:52 +00:00
default changed time component validation to use dummy date parts to avoid pre epoch issues
12 lines
356 B
Ruby
12 lines
356 B
Ruby
#require File.dirname(__FILE__) + '/spec_helper'
|
|
|
|
#describe ValidatesTimeliness::DateHelper::InstanceTag do
|
|
|
|
# it "should return struct for time string" do
|
|
# object = mock("Model", :birth_date_and_time_before_type_cast => "2008-01-01 12:00:00")
|
|
# struct = value_with_timeliness(object)
|
|
# struct.should be_kind_of(DateTimeStruct)
|
|
# end
|
|
|
|
#end
|