Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 1.14 KB

File metadata and controls

16 lines (12 loc) · 1.14 KB

Testing — Ruby on Rails

Different testing tools

There are a handful of tools that you can use to test your Rails app. These are a couple that we have used at SfG:

Minitest

This is the testing suite that comes with Rails by default. You can check out the documentation for working with Minitest and Rails here.

Basic RSpec

This is a testing suite you can add to Rails with this gem. Here are RSpec's official docs

  1. Here's a detailed introductory tutorial
  2. Here's an RSpec Tutorial (Don’t write/type anything until you reach “Setting Up Rspec”, then code along)

Some RSpec related tooling

  1. Using Factory Bot makes testing easier. Here and here are a couple of Factory Bot tutorials.