When you have a multi-server setup, you'll be adding a new server from time to time. Before doing...
Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...
This card will show you how to use git rebase --onto without confusion. Use case You've got two feature...
Webmocks hash_including is similar to RSpec::Mocks::ArgumentMatchers#hash_including. Be aware that hash_including (webmock v3.0.1) doesn't...
Middleman is a static page generator that brings many of the goodies that Rails developers are used to.
Dump this method into your Ruby console to quickly print data in columns. This is helpful for e.g. comparing attributes...
Separate subject from body with a blank line Limit the subject line to 50 characters (max. 72), include reference (unique...
In modern default RSpec configurations, your tests are usually run in random order. This helps to detect "flickering" tests that...
In case you want to require a gem, that is not in the Gemfile of you bundle and therefore not...
Some pseudo-elements need to be addressed with vendor prefixes. E.g. ::selection is not supported by Firefox, you need to...
Sass lets you easily specify multiple selectors at once like this: .some-block &.has-hover, &:hover outline: 1px solid red...
Sometimes you want/have to send specific http(s) requests. You can do that easy with curl or just write the...
Note: The behaviour of Spreewald's within step is as described below for version < 1.9.0; For Spreewald >= 1.9.0 it is...
Barby is a great Ruby gem to generate barcodes of all different sorts. It includes support for QR codes via...
Just dumping this in case somebody might need it. When you need a CSS value (a padding, margin, height etc...
Crontabs are often unordered, especially when generated for an application where you usually group tasks by their domain/scope.
Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...
Using VCR to record communication with remote APIs is a great way to stub requests in tests. However, you may...
Line-height and vertical-align are simple CSS properties. So simple that most of us are convinced to fully understand...
There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...
We have projects that have been developed using many different versions of Ruby. Since we do not want to...
On application servers, gems are usually bundled into the project directory, at a location shared across deployments. This is usually...
This error message may occur when rspec gets loaded by rake, e.g. when you migrate the test database. NoMethodError: undefined...
Collection of useful tools in the Chrome JavaScript console. Make the whole page editable This is not special to Chrome...