New geordi script: migrate-all

Database migration and test preparation in Geordi migrate-all adapt to projects with or without parallel_tests, running the appropriate Rake tasks automatically.

Auto-generating plain-text bodies for HTML e-mails in Rails apps

HTML e-mails in Rails need a plain-text part to avoid spam penalties; premailer-rails can generate it automatically and be tuned for line length and formatting.

mattheworiordan/capybara-screenshot

Automatically saves failed Capybara test HTML and screenshots to tmp/capybara, helping diagnose flaky browser failures in Cucumber, RSpec, and Minitest.

mattheworiordan/capybara-screenshot

Captures browser screenshots on demand or automatically when tests fail, making visual debugging of Capybara runs easier.

Testing ActiveRecord callbacks with RSpec

Database-backed RSpec checks for ActiveRecord lifecycle behavior are more reliable than stubs when verifying side effects like automatically creating associated records.

Consider adding Reek to your CI pipeline

Reek detects Ruby code smells and antipatterns, helping assess merge request quality without blocking every warning. It fits CI as a non-blocking lint check.

yujinakayama/transpec: The RSpec syntax converter

Script to migrate test suites from RSpec 2 to RSpec 3, including syntax beyond should and expect.

colszowka/simplecov - GitHub

Ruby 1.9 code coverage tool with configurable reporting and automatic merging across test suites; rcov remains for Ruby 1.8.

Capistrano: exclude custom bundle groups for production deploy

Custom Bundler groups can still be downloaded during Capistrano deploys, slowing production and staging releases. Exclude unnecessary groups with bundle_without to avoid installing unused gems.

Error during Rails 5 upgrade: Environment data not found in the schema

Rails 5 upgrade can fail when the database schema lacks configured environment data, especially during parallel test database migration.

Bash: How to grep logs for a pattern and expand it to the full request

Find all Rails log lines for matching requests by extracting request IDs and re-grepping the full log, avoiding interwoven output from concurrent requests.

Using Low-Level Prompts for High-Accuracy AI Coding

Precise, low-level prompts and tight context improve AI code edits across files; structured keywords, reusable patterns, and early review reduce guesses and errors.

Wrapping Your API In A Custom Ruby Gem

Packaging API bindings as a custom Ruby gem makes reuse and distribution easier, with tests recording HTTP interactions through VCR.

Heartbleed test

Checks a server hostname for the Heartbleed vulnerability in OpenSSL (CVE-2014-0160).

Howto: Create a self-signed certificate

Local HTTPS development often needs a trusted certificate; openssl or mkcert can create self-signed X.509 certificates for testing without browser warnings.

Webservice to test and inspect requests

Temporary request URLs make it easy to inspect HTTP callbacks and webhooks; incoming traffic is recorded and displayed for debugging.

Error handling and reporting with Rails

Rails exception handling can either crash requests, hide actionable errors, or spam trackers; ExceptionApp, DebugExceptions, and the error reporter shape responses, logging, and notifications.

Rails: Reporting CSP Violations to a log file

Capture CSP violation reports in a log file to spot blocked resources and browser-extension noise, with a dedicated Rails endpoint for incoming reports.

Cucumber CI job quirks

Cucumber CI rerun logic can pass green after syntax errors when no failing_features file is written; native --retry avoids this edge case.

Heads up: expect(object).to receive(:method_name) does not execute the original implementation of the method

receive(:method_name) stubs the original method implementation, so callbacks or side effects do not run during expectations. and_call_original preserves the real behavior.

Beware: Coffeescript "in" is not the Javascript "in"

CoffeeScript in checks array membership, not object properties; JavaScript in tests whether an object has a property. Use of for property lookup in CoffeeScript.

How to add esbuild to the rails asset pipeline

Migrating a Rails app from Sprockets-only asset handling to esbuild adds modern JavaScript bundling and can surface path, font, and Sass compatibility issues.

Transactional HTML Email Templates

HTML email styling is fragile across clients and devices, making transactional messages hard to build and test. Open-source templates reduce the work needed for common transactional emails.

Rspec: Expecting a Rake task to be called

Rake tasks can be verified in RSpec by expecting Rake::Task to receive invoke, useful for testing task-triggered side effects without putting logic in tasks.