RSpec Argument Matchers Explained

Published: 10 October 2022
on channel: Brett Codes
291
14

When mocking and stubbing Ruby code with RSpec, it can be helpful to use argument matchers to expect an object to receive a method call with various types of arguments. This is an advanced RSpec feature, but one that is particularly useful when testing conditional method call arguments.

View the source for this episode: https://github.com/brettchalupa/scree...

RSpec docs on this feature: https://relishapp.com/rspec/rspec-moc...


Watch video RSpec Argument Matchers Explained online without registration, duration hours minute second in high quality. This video was added by user Brett Codes 10 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 29 once and liked it 1 people.