【Rails】RSpecの導入からモデルテストを書き方まで|FactoryBot・Fakerでハマったポイントまとめ
https://qiita.com/masa_tech_0326/items/b5f51a60674113a91158?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items

#qiita #Rails #RSpec #Faker #FactoryBot

【Rails】RSpecの導入からモデルテストを書き方まで|FactoryBot・Fakerでハマったポイントまとめ - Qiita

はじめに 個人開発しているRailsアプリ「MabaTalk」にRSpecを導入し、主要モデルであるMessageCategoryのテストを書きました。 テストを書いた目的は2つです。 リグレッション検知 :コード変更によって既存の動く機能が壊れたことを検知するため ...

Qiita

Rails 개발을 위한 AI 코딩 어시스턴트 활용 전략: 생산성 극대화와 주의사항

Rails의 관습적인 패턴인 테스트 코드 생성, 마이그레이션 작성, CRUD 보일러플레이트 제작에서 AI는 50% 이상의 높은 시간 절감 효과를 제공합니다.

#active_record #rspec
https://ruby-news.kr/articles/ai-coding-assistants-rails-what-works

Rails 개발을 위한 AI 코딩 어시스턴트 활용 전략: 생산성 극대화와 주의사항

Rails의 관습적인 패턴인 테스트 코드 생성, 마이그레이션 작성, CRUD 보일러플레이트 제작에서 AI는 50% 이상의 높은 시간 절감 효과를 제공합니다.

Ruby-News || 루비 AI 뉴스

This is an interesting article about parallel testing and CI https://visuality.pl/posts/parallel_tests_without_waiting

#ruby #rails #rspec #minitest

Parallel Tests Without Waiting - Blog - Visuality

Learn how rspec-big-split gem solves the CI bottleneck caused by large RSpec test files by intelligently splitting them across parallel workers.

⚡ From ~30 minutes to ~2 minutes: how a Rails team achieved ultra-fast CI — without rewriting tests.

Parallel RSpec done right, smart workload balancing, PostgreSQL on tmpfs (RAM), and even reconsidering cloud vs physical hardware.

Inspired by a Kaigi on Rails 2025 talk 🇯🇵

🔗 https://rubystacknews.com/2026/02/18/%e2%9a%a1-from-30-minutes-to-2-speed-running-rails-ci-without-cheating-much/

#Ruby #Rails #CI #RSpec #DevOps #Performance #KaigiOnRails

⚡ From 30 Minutes to 2: Speed-Running Rails CI (Without Cheating… Much)

February 18, 2026 Based on a talk from Kaigi on Rails 2025 by Hayato Okumoto (TwoGate CTO) Because life is too short to watch bundle exec rspec scroll by like the credits of an extended director’s …

Linking Ruby knowledge from the most remote places in the world.

Hi #ruby community I'm looking for other recommendation here https://codeberg.org/codeDude/romodoro-socket/src/branch/main/lib/romodoro/socket/timer/countdown.rb

I''m not sure how to test this with #Rspec

basically the intention is test if the duration is for example 2 seconds the countdown spend 2 seconds.

Could you gimme ideas please?

#rails #coding #programming #unitTest #softwareDevelopment

romodoro-socket/lib/romodoro/socket/timer/countdown.rb at main

romodoro-socket - A Unix sockets that provide a pomodoro timer

Codeberg.org

@kerrick And #RSpec.

Whenever I have to use anything other than #Ruby, I am immediately reminded of how every single testing framework is miles, no, light-years behind RSpec.

Hello #ruby people, How can I test using #Rspec that accept method is receive(triggered). The class is here https://codeberg.org/codeDude/romodoro-socket/src/branch/main/lib/romodoro/socket/timer/command_server.rb#L24
I having issues trying to mock and stub the dependencies

shoulda-matchers가 실제로 당신을 위해 하는 일

shoulda-matchers는 Rails 테스트 코드를 간결하고 가독성 높게 만들어주며, 모델의 계약을 명확히 문서화합니다.

#rspec #rails_testing
https://ruby-news.kr/articles/what-shoulda-matchers-is-actually-doing-for-you

shoulda-matchers가 실제로 당신을 위해 하는 일

최신 Ruby, Rails, AI 관련 뉴스와 트렌드를 한곳에서 만나보세요

Ruby-News || 루비 AI 뉴스
As expected, the ~65% #RSpec test coverage meant that there have been several issues which came up during manual testing, including some very pleasantly head-scratching ones 🧠

RSpec `have_attributes` 내 복잡한 문자열 검증: `satisfy` 매처 활용

RSpec `have_attributes` 매처 사용 시, 문자열 속성에 대한 복합적인 포함/미포함 조건 검증의 한계점을 제시합니다.

#rspec
https://ruby-news.kr/articles/rspec-satisfy-matcher

RSpec `have_attributes` 내 복잡한 문자열 검증: `satisfy` 매처 활용

최신 Ruby, Rails, AI 관련 뉴스와 트렌드를 한곳에서 만나보세요

Ruby-News || 루비 AI 뉴스