Smart Test Suites with Ruby

December 15, 2025 Lessons from Ruby World Conference 2025 At Ruby World Conference 2025, Masatoshi Seki (関 将俊) and Miwa Fukaya (深谷 美和) presented a talk grounded in something rare in our industry: more than 20 years of real testing history. Their presentation, “How to Create Today’s Recommended Tests”, introduces Ninja Testing — a testing … Continue reading Smart Test Suites with Ruby

Readable Specs vs. Clever Specs: Finding the Balance in Test Design

November 25, 2025 In every engineering team, the topic eventually comes up: Should our tests be concise and optimized, or explicit and easy to read? As engineers, we tend to enjoy clever solutions—those elegant one-liners or metaprogrammed helpers that feel powerful. But when it comes to test suites, clever is rarely the right choice. In … Continue reading Readable Specs vs. Clever Specs: Finding the Balance in Test Design

Simulating External APIs in RSpec: A Clean Approach Using WebMock

June 6, 2025 Abstract When testing systems that depend on external services, such as geolocation APIs, simulating HTTP responses becomes essential for building deterministic and isolated test suites. This article explores a disciplined approach to mocking HTTP calls in RSpec using WebMock—without relying on custom helpers or implicit abstractions. Instead, we emphasize clean code principles: … Continue reading Simulating External APIs in RSpec: A Clean Approach Using WebMock

🔧 Making Ruby on Rails Integration Easier with trix-genius Generators

April 9, 2025 I recently added a Rails Generator to the trix-genius gem — a small improvement that aims to make integration smoother and faster for developers using Trix with Rails and Stimulus. 👉 TL;DR: rails generate trix_genius:install now does the setup for you. 💬 Need a Custom Ruby Gem for Your App? If you're … Continue reading 🔧 Making Ruby on Rails Integration Easier with trix-genius Generators

Automating Database Seeding for Reliable Tests in Rails

March 19, 2025 When developing a Rails application that involves structured data, testing is crucial to ensure that our data handling works correctly. Recently, I faced a challenge when testing a questionnaire system where I needed to run database seeds before executing test cases. Here’s how I optimized the process. Need to Improve Your Test … Continue reading Automating Database Seeding for Reliable Tests in Rails

Testing RSpec Environments: A Tale of Setup, Cleanup, and Preventing Total Chaos

March 18, 2025 Testing, like life, requires careful preparation, a little bit of chaos management, and an occasional cleanup. When it comes to RSpec, setting up and cleaning up your test environments might not sound like a rockstar feature, but let me tell you, if you skip these steps, you might as well be throwing … Continue reading Testing RSpec Environments: A Tale of Setup, Cleanup, and Preventing Total Chaos

RSpec Mocks & Doubles: The Secret Sauce for Testing Like a Pro 🧪

February 25, 2025 Let’s face it—writing tests can sometimes feel like trying to solve a Rubik’s Cube blindfolded. You’re juggling dependencies, edge cases, and external systems, all while hoping your code doesn’t break in production. But fear not, because RSpec mocks and test doubles are here to save the day (and your sanity). In this … Continue reading RSpec Mocks & Doubles: The Secret Sauce for Testing Like a Pro 🧪

Writing Effective Tests in Ruby on Rails Using RSpec

December 11, 2024 Testing is an essential part of building reliable and maintainable applications. In the Ruby on Rails ecosystem, RSpec has become a popular testing framework due to its expressive syntax and powerful features. This article will guide you through the different types of tests you can write in Rails using RSpec, complete with … Continue reading Writing Effective Tests in Ruby on Rails Using RSpec

The Magic of RSpec Blocks: Before, After, and the Sacred Art of Cleanup

February 10, 2025 Testing in RSpec is like running a clean, well-organized kitchen. Every test should start fresh, without yesterday's spaghetti sauce all over the counter. But if you've ever run into mysterious test failures, you’ve likely witnessed the horrors of a "dirty environment." Fear not, fellow Rubyist! Today, we embark on an epic journey … Continue reading The Magic of RSpec Blocks: Before, After, and the Sacred Art of Cleanup

Automate, Test, Repeat: The Art of Blending Rake Tasks with RSpec

February 2, 2025 In the ever-evolving world of Ruby and Rails development, two tools often steal the spotlight: Rake, the silent workhorse automating mundane tasks, and RSpec, the meticulous detective ensuring your code behaves as expected. But what happens when you bring these two together? Magic. Let’s explore how combining Rake tasks with RSpec tests … Continue reading Automate, Test, Repeat: The Art of Blending Rake Tasks with RSpec