From 21d26ee2b14e834fb805daf696e6a83dde5d6c85 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Sat, 29 Nov 2008 10:52:03 +1100 Subject: [PATCH] remove multiparameter time format example for 2.0.x because sqlite didn't support time column types in that version --- spec/multiparameter_attributes_spec.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spec/multiparameter_attributes_spec.rb b/spec/multiparameter_attributes_spec.rb index 3f19e97..e5f7318 100644 --- a/spec/multiparameter_attributes_spec.rb +++ b/spec/multiparameter_attributes_spec.rb @@ -38,10 +38,12 @@ describe ValidatesTimeliness::MultiparameterAttributes do obj.should_receive(:birth_date=).once.with("2000-02-01") obj.send(:execute_callstack_for_multiparameter_attributes, @callstack) end - - it "should store time string for a time column" do - obj.should_receive(:birth_time=).once.with("09:10:11") - obj.send(:execute_callstack_for_multiparameter_attributes, @callstack) + + unless RAILS_VER < '2.1' # sqlite doesn't support :time attribute in rails 2.0.x + it "should store time string for a time column" do + obj.should_receive(:birth_time=).once.with("09:10:11") + obj.send(:execute_callstack_for_multiparameter_attributes, @callstack) + end end end