diff --git a/Changelog.md b/Changelog.md index e268120cb..ddb9defc3 100644 --- a/Changelog.md +++ b/Changelog.md @@ -13,6 +13,8 @@ Bug Fixes: * Fix `ActiveRecord::TestFixture#uses_transaction` by using example description to replace example name rather than example in our monkey patched `run_in_transaction?` method. (Stan Lo, #2495) +* Prevent keyword arguments being lost when methods are invoked dynamically + in controller specs. (Josh Cheek, #2509, #2514) ### 5.0.1 / 2021-03-18 [Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.0...v5.0.1) diff --git a/spec/rspec/rails/example/controller_example_group_spec.rb b/spec/rspec/rails/example/controller_example_group_spec.rb index fa524b0fc..2ddf86451 100644 --- a/spec/rspec/rails/example/controller_example_group_spec.rb +++ b/spec/rspec/rails/example/controller_example_group_spec.rb @@ -27,7 +27,7 @@ def method_missing(_name, *_args, **kwargs, &_block); a_method(**kwargs); end # This example requires prepend so that the `method_missing` definition # from `ControllerExampleGroup` bubbles up to our artificial one, in reality - # this is likely to be either an internal RSpec dispatch or one from a 3rd + # this is likely to be either an internal RSpec dispatch or one from a 3rd # party gem. prepend ControllerExampleGroup end