paint-brush
How to Use RSpec From Basics to Testing User Inputby@luis-novoa
3,706 reads
3,706 reads

How to Use RSpec From Basics to Testing User Input

by Luis Novoa12mFebruary 1st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Ruby gem RSpec is a Ruby gem for Test-Driven Development. You create tests as you code, so in the future, if an update breaks something, it will be easy to notice because one or more tests will fail. If you don't have RSpec installed on your machine, follow this guide to know how to get it. RSpec's syntax lets us create various scopes which we can use to share variables through tests. The method defines each test, and it is possible to share objects and tests across scopes.

Company Mentioned

Mention Thumbnail
featured image - How to Use RSpec From Basics to Testing User Input
Luis Novoa HackerNoon profile picture
Luis Novoa

Luis Novoa

@luis-novoa

Learn to create. Create to learn.

About @luis-novoa
LEARN MORE ABOUT @LUIS-NOVOA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Luis Novoa HackerNoon profile picture
Luis Novoa@luis-novoa
Learn to create. Create to learn.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite