Skip to content

Commit 4d3b936

Browse files
committed
Test against AS 8.1 beta
1 parent 27946fa commit 4d3b936

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
gemfile:
1515
- gemfiles/Gemfile.activesupport-7.1.x
1616
- gemfiles/Gemfile.activesupport-7.2.x
17-
- gemfiles/Gemfile.activesupport-8.x
17+
- gemfiles/Gemfile.activesupport-8.0.x
1818
exclude:
1919
- gemfile: gemfiles/Gemfile.activesupport-8.x
2020
ruby_version: 3.1.6
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
22

33
gemspec :path => '..'
44

5-
gem 'activesupport', '~> 8.0'
5+
gem 'activesupport', '~> 8.0.0'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec :path => '..'
4+
5+
gem 'activesupport', '~> 8.1.0.beta1'

spec/working_hours/computation_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
it 'can add working days to ActiveSupport::TimeWithZone' do
2323
time = Time.utc(1991, 11, 15, 14, 00, 42)
2424
time_monday = Time.utc(1991, 11, 18, 14, 00, 42)
25-
time_with_zone = ActiveSupport::TimeWithZone.new(time, 'Tokyo')
26-
expect(add_days(time_with_zone, 1)).to eq(ActiveSupport::TimeWithZone.new(time_monday, 'Tokyo'))
25+
time_with_zone = ActiveSupport::TimeWithZone.new(time, ActiveSupport::TimeZone.new('Tokyo'))
26+
expect(add_days(time_with_zone, 1)).to eq(ActiveSupport::TimeWithZone.new(time_monday, ActiveSupport::TimeZone.new('Tokyo')))
2727
end
2828

2929
it 'skips non worked days' do

0 commit comments

Comments
 (0)