mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +00:00
fix bad spec
This commit is contained in:
@@ -27,8 +27,8 @@ describe ValidatesTimeliness::Parser do
|
|||||||
if RAILS_VER >= '2.1'
|
if RAILS_VER >= '2.1'
|
||||||
it "should convert time string into current timezone" do
|
it "should convert time string into current timezone" do
|
||||||
Time.zone = 'Melbourne'
|
Time.zone = 'Melbourne'
|
||||||
time = parse("2000-01-01 12:13:14", :datetime)
|
time = parse("2000-06-01 12:13:14", :datetime)
|
||||||
Time.zone.utc_offset.should == 10.hours
|
time.utc_offset.should == 10.hours
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user