Skip to content

Commit 7667604

Browse files
committed
Fix argument error on Ruby3.0.preview1 and ActionMailer
Error was + 1) InboxMailbox route email to properly mailbox + Failure/Error: + expect(InboxMailbox) + .to receive_inbound_email(to: "[email protected]") + + ArgumentError: + wrong number of arguments (given 1, expected 0) + # /home/runner/work/rspec-rails/bundle/ruby/3.0.0/gems/actionmailbox-6.0.3.4/lib/action_mailbox/test_helper.rb:16:in `create_inbound_email_from_mail' + # ./spec/mailboxes/inbox_mailbox_spec.rb:6:in `block (2 levels) in <top (required)>' It should be fixed with Rails 6.1 rails/rails#35904
1 parent 08bdd11 commit 7667604

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
include:
1919
# Rails 6.0 builds >= 2.5.0
2020
- ruby: 3.0.0-preview1
21-
allow_failure: true
2221
env:
2322
RAILS_VERSION: '~> 6.0.0'
2423
- ruby: 2.7

lib/rspec/rails/example/mailbox_example_group.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module MailboxExampleGroup
1313
def self.create_inbound_email(arg)
1414
case arg
1515
when Hash
16-
create_inbound_email_from_mail(arg)
16+
create_inbound_email_from_mail(**arg)
1717
else
1818
create_inbound_email_from_source(arg.to_s)
1919
end

0 commit comments

Comments
 (0)