Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", 3.1, 3.2, 3.3, 3.4, 3.5, 4.0]
ruby: ["3.0", 3.1, 3.2, 3.3, 3.4, "4.0"]
gemfile:
[
activesupport-7.1,
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.4.7
3.4.13
6 changes: 3 additions & 3 deletions spec/marsh_grass_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ def make_time(first, second)
timezone_hours = []
after(:all) do
# assert that the repetitions were run
expect(timezone_hours.length).to eq 34
offsets = %w[+00:00 +01:00 +02:00 +03:00 +03:30 +04:00 +04:30 +05:00 +05:30 +05:45 +06:00 +06:30 +07:00 +08:00 +09:00 +09:30 +10:00 +11:00 +12:00 +12:45 +13:00 -01:00 -02:00 -03:00 -03:30 -04:00 -05:00 -06:00 -07:00 -08:00 -09:00 -10:00 -11:00 -12:00]
offsets = ActiveSupport::TimeZone.all.map(&:formatted_offset).uniq.sort
expect(timezone_hours.length).to eq offsets.length
expect(timezone_hours.uniq.sort).to eq offsets
end

# Should run 34x
# Should run once per distinct offset
it 'allows testing for all timezone variations', :time_zones do
timezone_hours << Time.zone.formatted_offset
end
Expand Down
Loading