mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-24 23:06:42 +00:00
fix bad spec
This commit is contained in:
parent
6265b2d804
commit
c3a591a5d8
@ -23,12 +23,12 @@ describe ValidatesTimeliness::Parser do
|
|||||||
it "should return Time object when passed a Time object" do
|
it "should return Time object when passed a Time object" do
|
||||||
parse(Time.now, :datetime).should be_kind_of(Time)
|
parse(Time.now, :datetime).should be_kind_of(Time)
|
||||||
end
|
end
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user