Rspec Testing Framework
Learn what Rspec is and how to use it to test Ruby programs.
We'll cover the following...
Popularity of Rspec
According to The Ruby Toolbox website, Rspec is the most popular testing library for Ruby:
Some folks from the Ruby community don’t like it, though:
RSpec offends me aesthetically with no discernible benefit for its added complexity over test/unit says DHH,the creator of Ruby on Rails, on Twitter
It’s a matter of preference; the question is quite controversial. To some degree, DHH is right. RSpec often emphasizes the smart, not-simple way of writing tests.
The Rspec configuration can take up some time. The good news, though, is that Rspec has completed its maturing phase, and its configuration is rather simple. For almost every question, there is an answer we ...