The step definition below lets you write: When I click on "Foo" This is useful in Selenium features where the...
Test suites usually grow over time as more and more development time is spent on a projects. Overall run-time...
Your account profile now links to a personal RSS feed. This RSS feed contains the newest public and private cards...
Makandra cards will auto-detect the language used for syntax highlighting. This auto-detection sometimes fails for short code snippets...
Today, I ran into trouble on a fairly fresh installed VM, running Ubuntu. I tried to bundle install and got...
When you use method_missing to have an object return something on a method call, always make sure you also...
Consider this Sass: .comment width: 320px; height: 240px; Any textarea with the comment class will be sized 320 by 240...
When refactoring a sequence of steps to a new, more descriptive step, you can use the steps method and Ruby...
Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...
You can specify the version of bundler to execute a command (most often you need an older version of bundler...
In Rails 3.1+, instead of defining a separate up and down method you can define a single method change:
When you are scrolling up to investigate a test failure it is super annoying when the terminal scrolls back down...
Updated the card with our current best practice (shared app code and specs via symlinks).
has_defaults is now a gem, no longer a plugin. The plugin version no longer exists. Note that plugins are...
In moderately complex authorization scenarios you will often find yourself writing a map like this: class NotesController < ApplicationController power :notes...
Check if you have puppetsync enabled on the master and client [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet...
ActiveSupport::Memoizable will be removed from Rails and has a lot of strange caveats that will ruin your day.
Rack has a limit for how many form parameters it will parse. This limit is 65536 by default.
RSpec's be_false behaves unexpectedly: nil.should be_false # passes, as the expectation returns true If you want to check...
Lately, I came across a nasty error. I had a class Article that included FooTrait and BarTrait. In BarTrait, I...
Copy and paste at will, they're free! German quotation marks: „ “ (Ubuntu-Hotkey: AltGr+v and AltGr+b) English quotation...
I wonder if the guy that wrote BigDecimal#inspect has a tragic backstory that explains why he hates humanity.
I posted a solution which is awesome and also does natural sorting.
Sometimes you need to remove high Unicode characters from a string, so all characters have a code point between 0...