How to Use Shoulda Matchers with RSpec for Ruby on Rails

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • Go ahead and clone the repository of this starter Rails app.

  • rspec-rails

    RSpec for Rails 6+

  • RSpec

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • factory_bot_rails

    Factory Bot ♥ Rails

  • Factory Bot Rails

  • database_cleaner-active_record

    Strategies for cleaning databases using ActiveRecord. Can be used to ensure a clean state for testing.

  • Database Cleaner

  • faker

    A library for generating fake data such as names, addresses, and phone numbers. (by faker-ruby)

  • Faker

  • shoulda-matchers

    Simple one-liner tests for common Rails functionality

  • According to the shoulda-matchers documentation:

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts