Tutorials




Avoiding Network Calls In Rails Tests Without Using Mocks, Stubs or VCR - Code with Jason
An important principle of testing is that tests should be deterministic. The passing or failing of a test shouldn’t depend on the date it was run, whether any certain other tests ran before it, or whether some condition outside the application cha...






How to test Ruby output and logs using RSpec with StringIO
Testing what is logged when you application is run can be done with testing method calls to your logger. However, using StringIO to capture and examine its output can provide several advantages, such as being able to record output and perform test...