mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-24 06:46:44 +00:00
remove multiparameter time format example for 2.0.x because sqlite didn't support time column types in that version
This commit is contained in:
parent
5a4be4a91e
commit
cca66bbbaf
@ -39,9 +39,11 @@ describe ValidatesTimeliness::MultiparameterAttributes do
|
|||||||
obj.send(:execute_callstack_for_multiparameter_attributes, @callstack)
|
obj.send(:execute_callstack_for_multiparameter_attributes, @callstack)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should store time string for a time column" do
|
unless RAILS_VER < '2.1' # sqlite doesn't support :time attribute in rails 2.0.x
|
||||||
obj.should_receive(:birth_time=).once.with("09:10:11")
|
it "should store time string for a time column" do
|
||||||
obj.send(:execute_callstack_for_multiparameter_attributes, @callstack)
|
obj.should_receive(:birth_time=).once.with("09:10:11")
|
||||||
|
obj.send(:execute_callstack_for_multiparameter_attributes, @callstack)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user