Database Cleaner
rspec-rails
Our great sponsors
Database Cleaner | rspec-rails | |
---|---|---|
3 | 19 | |
2,912 | 5,094 | |
0.4% | 0.5% | |
0.0 | 8.6 | |
3 months ago | 8 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Database Cleaner
- Como configurar ambiente de testes em Ruby on Rails com RSpec
-
10 Signs of a good Ruby on Rails Developer
If your are using gems like faker , factory_bot_rails and database_cleaner to create and clean test records then creating unnecessary records can cost you time and speed.
rspec-rails
-
Test Driving a Rails API - Part Two
When starting a Rails project, you have a lot of decisions to make. Whether or not to write tests should not be one of them. The big decision is to use Minitest or Rspec. Both of those testing frameworks are great and provide everything you need to test a Rails application thoroughly.
-
How to Use Shoulda Matchers with RSpec for Ruby on Rails
RSpec
-
How to Setup RSpec on a Rails Project
rspec-rails factory_bot_rails faker
-
Tests Everywhere - Ruby
Ruby testing with RSpec
-
Code Reviewing a Ruby on Rails application.
RSpec is a testing framework for Ruby that is widely used in the Ruby on Rails community. It allows developers to write and execute automated tests. RSpec promotes behavior-driven development (BDD) by providing a readable syntax for describing the expected behavior of the application.
-
Generating an OpenAPI/Swagger spec from a Ruby on Rails API
This is where rswag comes in. It is an extension to rspec-rails for "describing and testing API operations".
- Relishapp is down, anyone knows what happened?
- Top 5 Ruby on Rails Gems
-
Request Spec Realistic Error Response
I didn't figure out how to resolve this on my own. I only came across a solution by searching for others' approaches. I found this issue in rspec-rails's issue tracker. In there Michael Gee shares a workaround. The earliest reference to this approach that I can find is from Eliot Sykes in 2017. If you're aware of an earlier reference to this, let me know!
-
Who's using Rails 7 test
The rspec-rails gem falls back to rails' minitest code to do some things and there are some bugs with lifecycle hooks for example, check here https://github.com/rspec/rspec-rails/issues/2526 and https://github.com/rspec/rspec-rails/issues/2550 that needs workarounds, because rspec tests don't have the exact same lifecycle than minitest tests.
What are some alternatives?
PgHero - A performance dashboard for Postgres
Seed dump - Rails 4/5 task to dump your data to db/seeds.rb
Seed Fu - Advanced seed data handling for Rails, combining the best practices of several methods together.
Squasher - Squasher - squash your old migrations in a single command
SecondBase - Seamless second database integration for Rails.
Rack::Attack - Rack middleware for blocking & throttling
BatchLoader - :zap: Powerful tool for avoiding N+1 DB or HTTP queries
Redis Dashboard - Sinatra app to monitor Redis servers.
PgDriveBackup - Simple solution to make encrypted with ccrypt PostgreSQL backups and storing on Google Drive API
Seedbank - Seedbank gives your seed data a little structure. Create seeds for each environment, share seeds between environments and specify dependencies to load your seeds in order. All nicely integrated with simple rake tasks.
SchemaPlus - SchemaPlus provides a collection of enhancements and extensions to ActiveRecord
QueryTrack - Find time-consuming database queries for ActiveRecord-based RailsĀ Apps