Tutorials






A repeatable, step-by-step process for writing Rails integration tests with Capybara
Many Rails developers who are new to writing tests struggle with the question of what to write tests for and how.I’m about to share with you a repeatable formula that you can use to write an integration test for almost any Rails feature. It’s noth...

A Rails middleware to change the log level at runtime
Have you ever found the Rails logs too verbose in development?When working on a Rails application, you don’t always need that amount of detail in your logs. From time to time, a less verbose log is more than enough, especially after a long day cod...

The difference between RSpec, Capybara and Cucumber
RSpecRSpec is a testing framework. It’s what allows you to write and run your tests.An analogous tool would be MiniTest. In my experience, most commercial Rails projects use RSpec and most open-source Ruby projects use MiniTest. At any Rails job y...


Rails ActionCable: The good and the bad for developers
Rails 5 has recently introduced WebSocket support via ActionCable. It’s a great move towards realtime for the Rails community, however I think developers need to understand its strengths and weaknesses before rolling it out into production environ...