diff options
author | Kyle Zhao <kzhao.sw@gmail.com> | 2019-04-09 00:38:50 -0400 |
---|---|---|
committer | Kyle Zhao <kzhao.sw@gmail.com> | 2019-04-09 00:43:53 -0400 |
commit | 4a9f2a746e855cf9f7169c8b7ed7563422bb08d6 (patch) | |
tree | 4aaca0e370e6defb1af905022674e1e8d4a42841 /railties/test/generators_test.rb | |
parent | e485c14a3ee29ee486324a96545abf964d428101 (diff) | |
download | rails-4a9f2a746e855cf9f7169c8b7ed7563422bb08d6.tar.gz rails-4a9f2a746e855cf9f7169c8b7ed7563422bb08d6.tar.bz2 rails-4a9f2a746e855cf9f7169c8b7ed7563422bb08d6.zip |
FIX: ActionMailbox test helper argument list
`receive_inbound_email_from_source` should accept an argument list
(`*args`) instead, to allow for the `source` argument in
`create_inbound_email_from_source`.
```ruby
receive_inbound_email_from_source(source, status: :processing)
```
Accepting a keyword argument list (`**kwargs`) results in an
`ArgumentError`
```text
ArgumentError: wrong number of arguments (given 1, expected 0)
```
Diffstat (limited to 'railties/test/generators_test.rb')
0 files changed, 0 insertions, 0 deletions