RSpec – Writing Specs
In this chapter, we will create a new Ruby class, save it in its own file and create a separate spec file to test this class. First, in our new…
In this chapter, we will create a new Ruby class, save it in its own file and create a separate spec file to test this class. First, in our new…
Let’s take a closer look at the code of our HelloWorld example. First of all, in case it isn’t clear, we are testing the functionality of the HelloWorld class. This of course, is a…
RSpec is a unit test framework for the Ruby programming language. RSpec is different than traditional xUnit frameworks like JUnit because RSpec is a Behavior driven development tool. What this…