From 1289988bed8fdbb86ddf4391014ef909653ea116 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Tue, 21 Sep 2010 20:15:46 +1000 Subject: [PATCH] remove spec for evaludate_option_value zone change on model method --- spec/validates_timeliness/conversion_spec.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/spec/validates_timeliness/conversion_spec.rb b/spec/validates_timeliness/conversion_spec.rb index 5938fd7..b079f9f 100644 --- a/spec/validates_timeliness/conversion_spec.rb +++ b/spec/validates_timeliness/conversion_spec.rb @@ -168,19 +168,12 @@ describe ValidatesTimeliness::Conversion do evaluate_option_value(lambda { value }, person).should == Time.utc(2010,1,1,12,0,0) end - it 'should return Time value in default zone for attribute method symbol which returns string time value' do + it 'should return Time value for attribute method symbol which returns string time value' do value = '2010-01-01 12:00:00' person.birth_time = value evaluate_option_value(:birth_time, person).should == Time.utc(2010,1,1,12,0,0) end - it 'should return Time value in current zone attribute method symbol which returns string time value if timezone aware' do - @timezone_aware = true - value = '2010-01-01 12:00:00' - person.birth_time = value - evaluate_option_value(:birth_time, person).should == Time.zone.local(2010,1,1,12,0,0) - end - context "restriction shorthand" do before do Timecop.freeze(Time.mktime(2010, 1, 1, 0, 0, 0))