Stub that automatically verifies that stubbed methods exist and the signatures match the original.
03-Dec-2020 1157
Sometimes fakes are a good choice. But the price is high. In particular, they make changing code harder. You rename a method, but all tests that stub the previous version keep passing. It would be nice if those started to fail so that when they're green again, you can be certain that everything that had to be updated was updated. Well, now you can.To be fair, you already can in Rspec with their verifying double. But what about Minitest? And there are still differences. Unlike verifying double:.
Stub that automatically verifies that stubbed methods exist and the signatures match the original. #ruby #rubydeveloper #rubyonrails #automatically #verifies #stubbed #methods #exist #signatures #match #original. https://rubyonrails.ba/link/stub-that-automatically-verifies-that-stubbed-methods-exist-and-the-signatures-match-the-original