Testing is a mechanism almost no developer gets away with. And in this article I will talk about testing with RSpec on Rails which differ slightly with plain Ruby. I will be writing for plain Ruby in my next article so be sure to look out for that.

There are different tools used in testing but will focus on one. So what is RSpec? It is a Domain Specific Language testing tool specifically written in Ruby to test Ruby code. Its concept is more of TDD(Test Driven Development) where tests are prewritten before the code and later refactored according to the tests’ fulfillments.