paint-brush
How To Configure Rails Tests with RSpec, FactoryBot and Capybaraby@felipe-augusto-rosa
2,512 reads
2,512 reads

How To Configure Rails Tests with RSpec, FactoryBot and Capybara

by Felipe Augusto Rosa4mSeptember 9th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

How To Configure Rails Tests with RSpec, FactoryBot and Capybara is a guide on how to set up your environment for using these technologies. RSpec is a Ruby written language for testing Ruby code. FactoryBot allows us to create an object or a collection of objects with predefined sets of values for our tests. Database Cleaner is a tool used to clean the database after tests. It is used to simulate how a user interacts with your web application using Ruby. Database cleaner is useful for situations where tests create a new object in the database that could interfere with other tests.

Company Mentioned

Mention Thumbnail
featured image - How To Configure Rails Tests with RSpec, FactoryBot and Capybara
Felipe Augusto Rosa HackerNoon profile picture
Felipe Augusto Rosa

Felipe Augusto Rosa

@felipe-augusto-rosa

Just kind of a full stack developer trying to be a real full stack developer.

Learn More
LEARN MORE ABOUT @FELIPE-AUGUSTO-ROSA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Felipe Augusto Rosa HackerNoon profile picture
Felipe Augusto Rosa@felipe-augusto-rosa
Just kind of a full stack developer trying to be a real full stack developer.

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