spec/data/zone_spec.rb in barometer-0.6.7 vs spec/data/zone_spec.rb in barometer-0.7.0

- old
+ new

@@ -63,11 +63,14 @@ zone.tz = nil zone.tz.should be_nil zone.code.should be_nil zone = Data::Zone.new(@timezone) - zone.code.should == "CET" + # the expected result of this depends on the time of year + # when summer expect "CEST", otherwise "CET" + # just let TZINFO handle this + zone.code.should == TZInfo::Timezone.get(@timezone).period_for_utc(Time.now.utc).zone_identifier.to_s end it "responds to dst?" do @zone.respond_to?("dst?").should be_true zone = Data::Zone.new(@timezone) @@ -358,6 +361,6 @@ Data::Zone.is_zone_code?("EAST").should be_true end end -end \ No newline at end of file +end