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:
Adam Meehan 2008-11-29 10:52:03 +11:00
parent 5a4be4a91e
commit cca66bbbaf

View File

@ -38,10 +38,12 @@ describe ValidatesTimeliness::MultiparameterAttributes do
obj.should_receive(:birth_date=).once.with("2000-02-01") obj.should_receive(:birth_date=).once.with("2000-02-01")
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