Skip to content

Commit

Permalink
Fix description for Time.local test
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 6, 2022
1 parent 2fb1d43 commit 4281f46
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions core/time/shared/local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@
end
end

platform_is_not :windows do
describe "timezone changes" do
it "correctly adjusts the timezone change to 'CET' on 'Europe/Amsterdam'" do
with_timezone("Europe/Amsterdam") do
Time.send(@method, 1970, 5, 16).to_a.should ==
[0, 0, 0, 16, 5, 1970, 6, 136, false, "CET"]
end
end
it "uses the 'CET' timezone with TZ=Europe/Amsterdam in 1970" do
with_timezone("Europe/Amsterdam") do
Time.send(@method, 1970, 5, 16).to_a.should ==
[0, 0, 0, 16, 5, 1970, 6, 136, false, "CET"]
end
end
end
Expand Down

0 comments on commit 4281f46

Please sign in to comment.