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

How To Configure Rails Tests with RSpec, FactoryBot and Capybara

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

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


Receive Stories from @felipe-augusto-rosa

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!