© Panos Matsinopoulos 2020
P. MatsinopoulosPractical Test Automationhttps://doi.org/10.1007/978-1-4842-6141-5_5

5. Useful RSpec Tools

Panos Matsinopoulos1 
(1)
KERATEA, Greece
 
RSpec is a very feature-rich library. In this chapter, you learn about the most frequently used features (Figure 5-1), and you try to apply them to a real Ruby application. Also, you will be requested to develop a Ruby class and test cover it with RSpec.
../images/497830_1_En_5_Chapter/497830_1_En_5_Fig1_HTML.jpg
Figure 5-1

Useful RSpec Tools

Learning Goals

  1. 1.

    Learn about RSpec before and after hooks.

     
  2. 2.

    Learn about the subject reference.

     
  3. 3.

    Learn about named subjects.

     
  4. 4.

    Learn about how to extend RSpec with helper methods in modules.

     
  5. 5.

    Learn ...

Get Practical Test Automation: Learn to Use Jasmine, RSpec, and Cucumber Effectively for Your TDD and BDD now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.