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...
Смотрите видео RSpec Argument Matchers Explained онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Brett Codes 10 Октябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 291 раз и оно понравилось 14 людям.