Jasmine: Mocking API requests in an Angular service spec
Angular service specs can hit real routes unless uiRouter startup is disabled; ngMock and $httpBackend let API requests be intercepted and asserted in Jasmine.
Speed up RSpec by deferring garbage collection
Deferred Ruby garbage collection can speed up RSpec examples by reducing GC overhead, though gains vary and may be negligible in newer Ruby versions.
OpenAI TTS: How to generate audio samples with more than 4096 characters
OpenAI TTS requests are capped at 4096 characters, so longer text needs chunking and MP3 merging to generate complete audio.
Run Chrome in a specific resolution or user agent with Selenium
Testing web apps at mobile-like sizes or with a custom browser identity reveals layout and behavior bugs before release.
Case Study: Analyzing Web Font Performance
Web font loading can delay first paint and cause FOIT, especially on slow connections. Delivery choices, fallback handling, and reduced font variants improve perceived performance.
How to open files from better_errors with RubyMine on Linux
RubyMine rubymine:// links can fail on GNOME/Linux, blocking better_errors from opening source files in the editor. A custom desktop handler and BETTER_ERRORS_EDITOR_URL make file jumping work.
RSpec: Tagging examples and example groups
Tagging RSpec examples and groups lets you filter slow or special cases, assign values, and trigger hooks or module includes by metadata.
RSpec matcher to compare two HTML fragments
Compare two HTML snippets in RSpec while ignoring whitespace, comment nodes, quote style, and attribute order.
Managing Rails locale files with i18n-tasks
i18n-tasks helps keep Rails locale files complete by finding missing and unused translation keys and reducing manual YAML bookkeeping.
Linux: Quickly create large files for testing
Create large placeholder files fast for testing disk usage, storage limits, or performance without writing real data using fallocate.
Using Apache Benchmark (ab) on sites with authentication
Authenticated pages can be benchmarked with ab by supplying the right session cookies; otherwise login-protected requests fail or measure the wrong content.
List of Chromium Command Line Switches « Peter Beverloo
Extensive Chrome startup options help build custom browser drivers and automate testing with Capybara.
Capistrano 3: Running a command on all servers
Capistrano 3 can execute an arbitrary shell command across all app servers, useful for grepping logs or bulk remote checks.
RestClient / Net::HTTP: How to communicate with self-signed or misconfigured HTTPS endpoints
HTTPS requests fail against self-signed certificates or broken certificate chains unless the correct CA, intermediate cert, or certificate store is configured.
How to fix gsub on SafeBuffer objects
html_safe strings lose $1 and other match variables inside gsub blocks. A SafeBuffer override can restore access to capture groups during replacements.
Acceptance testing using Capybara's new RSpec DSL
Capybara now includes an RSpec acceptance-testing DSL, replacing much of Steak’s earlier role and making end-to-end testing in RSpec more seamless.
Configuring Webpacker deployments with Capistrano
Rails deployments with Webpacker and Capistrano often need asset-path, manifest, and compile-time tweaks to avoid slow releases and unused compression output.
velesin/jasmine-jquery
Jasmine DOM testing is easier with matchers like toBeVisible() and toHaveCss(css), plus fixture loading for temporary HTML setup and cleanup.
Upgrading Capybara with deprecated Integer selectors
Capybara warns when selector locators are integers instead of strings or symbols, often in pagination links and numbered clicks.
thoughtbot/capybara-webkit
Capybara driver for browser testing with QtWebKit when JavaScript support is needed.
How to organize and execute cucumber features (e.g. in subdirectories)
Cucumber feature files can live in subdirectories, but step definitions and support files need an explicit load path. Using -r features keeps subfolder runs working.
Testing webpages globally (as in "around the globe")
Global website checks reveal DNS propagation issues and location-specific rendering problems before users do.
Disabling Spring when debugging
Spring can hide code changes while debugging Rails commands because it reuses a cached application process. Disabling it avoids stale behavior in rails and rake runs.
When does Webpacker compile?
Webpacker compiles assets on demand in Rails, which can freeze helpers and slow page reloads when no dev server is running.