After installing Bundler 1.1 you will get the following warning when running tests: WARNING: Cucumber-rails required outside of env.rb...
TL;DR {} binds stronger than do … end (as always in Ruby, special characters bind stronger than words) Demo
When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...
The following two hints are taken from Github's Ruby style guide: If your regular expression mentions a lot of...
Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
When you do a script/dbconsole -p, your MySQL shell will already be using UTF-8. When you call it yourself...
This is surprisingly difficult when there is a with the same text on the page, but you really want to...
Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes...
Online tool to test how a site behaves in popular desktop, tablet and phone resolutions.
This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...
This card shows you how to format a card's content using Markdown. We use the Commonmarker interpreter, so here...
Let's say you need to revert a migration that happened a while back. You'd create a new migration...
When updating WebMock, be prepared that your specs may send real requests into the depths of the internet unless you...
If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...
If you're responsible for gatekeeping in a projects, here is a guide, what to do. In order to reduce...
When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...
Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...
Delegating methods to other objects is often helpful but the syntax of both def_delegators and def_delegator is a...
You probably know about the possibility to tag scenarios in Cucumber to run your own piece of code before the...
In MySQL comparing zero to a string 0 = "any string" is always true! So when you want to compare a...
REST Client is a nice, simple HTTP client library for Ruby. When you do a simple GET request like that...
In order to save the original value of a constant, set the new value and restore the old value after...
Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...