RSpec built-in matchers are great but sometimes they are not enough. Fortunately, we can create easily our own matchers. Of course, we can then reuse ...
RSpec spies are a combination of mocks and stubs. If you are not familiarized with them you can check previous post about this topic: RSpec stubs expl...
You may want to check how to use stubs and mocks with RSpec before diving in into this subject. Syntax differences The only one syntax difference is t...
If you are not sure if you should write tests for your application check my article about it. Mostly, writing a spec you would like to stub classes us...
You already know why you have to test your code so it’s time to introduce 4 gems that are super useful when writing tests for your rails application...