blob: bc6d1392304b4983da7c58d4dfe2b19e1722ddcc (
plain)
1
2
3
4
5
6
7
8
|
describe :time_isdst, shared: true do
it "dst? returns whether time is during daylight saving time" do
with_timezone("America/Los_Angeles") do
Time.local(2007, 9, 9, 0, 0, 0).send(@method).should == true
Time.local(2007, 1, 9, 0, 0, 0).send(@method).should == false
end
end
end
|