Загрузка...

RSpec spec_helper vs rails_helper Explained

When you initialize RSpec in a Rails project, you get two files: spec/spec_helper.rb and spec/rails_helper.rb. They serve two different purposes and which one you require can have a drastic impact on your test speeds. In this video, I explain why that is, when to require each, and ways to keep your tests fast.

View the source for this episode: https://github.com/brettchalupa/screencasts/tree/main/spec-helper-vs-rails-helper

Companion blog post: https://code.brettchalupa.com/spec_helper-vs-rails_helper-explained

Versions used:
Ruby 3.1.1
Rails 7.0.04

Видео RSpec spec_helper vs rails_helper Explained канала Brett Codes
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять