Skip to content

Commit 0773707

Browse files
committed
Fix ruby 3.2.2 and Rails 6.1 compatibility in test suite
1 parent b6c36b4 commit 0773707

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
ruby: "3.0"
2222
- rails: "6.1"
2323
ruby: "3.1"
24+
- rails: "6.1"
25+
ruby: "3.2"
2426

2527
- rails: "7.0"
2628
ruby: 3.1

test/action_mailer_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
class ActionMailerTest < Minitest::Test
44
class MyMailer < ActionMailer::Base
5-
def some_email(to:, from:, subject:)
6-
mail(to: to, from: from, subject: subject, body: "Hello")
5+
def some_email(opts)
6+
mail(to: opts[:to], from: opts[:from], subject: opts[:subject], body: "Hello")
77
end
88
end
99

0 commit comments

Comments
 (0)