diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f612da2..c34b250 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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, diff --git a/.ruby-version b/.ruby-version index 2aa5131..618659f 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.4.7 +3.4.13 diff --git a/spec/marsh_grass_spec.rb b/spec/marsh_grass_spec.rb index 2fb68d8..fa03c2c 100644 --- a/spec/marsh_grass_spec.rb +++ b/spec/marsh_grass_spec.rb @@ -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