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