Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features
Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...
When a gem author releases a new version to Rubygems, usually a tag with the version number (e.g. v1.2.0) is...
ImageMagick takes a string with several options when cropping an image. See the command line options for how to provide...
In the tradition of our PostgreSQL cheat sheet for MySQL lamers, here is a cheat sheet for Jasmine when you...
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
When testing code that uses pushState / replaceState, your browser will appear to navigate away from http://localhost:3000/specs (or wherever...
Run bundle update cucumber capybara cucumber-rails to update to the newest versions. Backup your features/support/path.rb to be able to...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
Rails includes a way to see what an e-mail will look like. Integration to RSpec All you need to...
Rails guide that covers PostgreSQL-specific column types and usages for Active Record. You should especially keep in mind the...
Bourbon is a library of pure Sass mixins that are designed to be simple and easy to use. No configuration...
When accepting GIF images, you will also accept animated GIFs. Resizing them can be a time-consuming task and will...
RSpec::Matchers.define :be_naturally_sorted do match do |array| array == array.natural_sort end end See RSpec: Where to put custom...
This step will pass if the specified select is sorted. Then /^the "(.*?)" select should be sorted$/ do |label, negate|
It might happen that your Sidekiq queue gets stuck, hanging at 0% CPU load. When we inspected the process using...
The benefit of the Rails asset pipeline is that it compiles your stylesheets and javascripts to a single file, respectively...
When putting phone numbers into web pages, you should use tel: links so smartphone users can click those numbers to...
Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you want...
A perfect implementation of the wrong specification is worthless. By the same principle a beautifully crafted library with no documentation...
Hash#fetch is a great way to ensure that a hash key is present. The error message when a key...
Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...
Upgrading from Ruby 1.8.7 to 2.1.2 took me an hour for a medium-sized application. It involved hardly any changes...
If you make a gem with Bundler, you will get a rake release task that will instantly publish your gem...