thoughtbot / shoulda-context

Shoulda Context makes it easy to write understandable and maintainable tests under Minitest and Test::Unit within Rails projects or plain Ruby projects.
MIT License
239 stars 58 forks source link

Pass keyword args through `Context.method_missing` #71

Open TastyPi opened 1 year ago

TastyPi commented 1 year ago

Without this attempting to call a test's class method with keyword arguments complains that the wrong number of arguments are passed because the keyword hash is passed as a positional parameter instead of keyword parameters.

mcmire commented 1 year ago

Hi @TastyPi,

Thanks for the PR. Is there a test we could write that reproduces the problem you describe?