How to enable the Thinkpad microphone mute key on Ubuntu 16.04

Posted Over 6 years ago by Arne Hartherz.
askubuntu.com

While the hardware mute button of my Lenovo x230 worked on Ubuntu 14.04 out of the box, it does not...

Testing webpages globally (as in "around the globe")

Posted Almost 7 years ago by Dominik Schöler.

These tools help you in checking websites globally: DNS Checker This tool allows for global DNS propagation checking. GeoScreenshot

Middleman configuration for Rails Developers

Posted Almost 7 years ago by Dominik Schöler.

Middleman is a static page generator that brings many of the goodies that Rails developers are used to.

Beware: Nested Spreewald patiently blocks are not patient

Posted About 7 years ago.

Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is...

Testing HTTPS with badssl.com

Posted About 7 years ago by Arne Hartherz.
badssl.com

Website that offers lots of different kinds of HTTPS configurations, bad or good or complicated. They also offer a dashboard...

RestClient / Net::HTTP: How to communicate with self-signed or misconfigured HTTPS endpoints

Posted About 7 years ago by Arne Hartherz.

Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...

VCR: Inspecting a request

Posted About 7 years ago by Arne Hartherz.

Using VCR to record communication with remote APIs is a great way to stub requests in tests. However, you may...

Bug in Chrome 56+ prevents filling in fields with slashes using selenium-webdriver/Capybara

Posted About 7 years ago.

There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...

Linux: Quickly create large files for testing

Posted About 7 years ago by Henning Koch.

To create a 10 GB file: fallocate -l 10G huge_file.dat

Capybara: Disable sound during Selenium tests

Posted About 7 years ago by Henning Koch.

If the application under test makes sound, you probably want to disable this during integration testing. You can use the...

An Introduction to Sending HTML Email for Web Developers

Posted Over 7 years ago by Dominik Schöler.
smashingmagazine.com

A comprehensive introduction to sending HTML emails. Intro: HTML email: Two words that, when combined, brings tears to a developer...

Aruba: Stubbing binaries

Posted Over 7 years ago by Dominik Schöler.
github.com

When testing your command line application with Aruba, you might need to stub out other binaries you don't want...

Ruby: Writing specs for (partially) memoized code

Posted Over 7 years ago by Dominik Schöler.

When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...

makandra/gemika: Helpers for testing Ruby gems

Posted Over 7 years ago by Henning Koch.
github.com

We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...

How Rails chooses error pages (404, 500, ...) for exceptions

Posted Over 7 years ago by Henning Koch.

When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...

Testing terminal output with RSpec

Posted Almost 8 years ago by Arne Hartherz.

When testing Ruby code that prints something to the terminal, you can test that output. Since RSpec 3.0 there is...

Testing Cookie Limits

Posted Almost 8 years ago by Dominik Schöler.
browsercookielimits.squawky.net

TL;DR If you want to support most browsers, then don't exceed 50 cookies per domain, and don't...

thoughtbot/fake_stripe: A Stripe fake so that you can avoid hitting Stripe servers in tests.

Posted Almost 8 years ago by Henning Koch.
github.com

fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...

How to preview an image before uploading it

Posted Almost 8 years ago by Dominik Schöler.
developer.mozilla.org

When building a form with a file select field, you may want to offer your users a live preview before...

Testing ActiveRecord callbacks with RSpec

Posted About 8 years ago by Henning Koch.

Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...

Testing ActiveRecord validations with RSpec

Posted About 8 years ago by Henning Koch.

Validations should be covered by a model's spec. This card shows how to test an individual validation. This is...

Test your application's e-mail spam scoring with mail-tester.com

Posted Over 8 years ago by Emanuel.
mail-tester.com

You can use mail-tester.com to check your application's e-mails for issues that might cause e-mails to be...

natritmeyer/site_prism

Posted Over 8 years ago by Henning Koch.
github.com

SitePrism gives you a simple, clean and semantic DSL for describing your site using the Page Object Model pattern, for...

httpbin: HTTP Client Testing Service

Posted Over 8 years ago by Henning Koch.
httpbin.org

Some dozen generic API endpoints you can use to test how your HTTP client deals with various responses, e.g.