You probably know about the possibility to tag scenarios in Cucumber to run your own piece of code before the...

When your gems complain about invalid gemspecs and illformed requirements, it is most probably an error resulting from the transition...

In order to save the original value of a constant, set the new value and restore the old value after...

This error simply means you've overloaded a cookie. Hints for fixing: Check if you're putting too much (e.g...

Ever seen this error when using Graticule? Numerical argument out of domain - acos Similarly to the to_sql problem for...

You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.

Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...

Consider you have a file that uses improper encoding on special characters. Example: You see the latin1 version "ñ" for...

The following snippet demonstrates how you could create excel files (with spreadsheet gem) and format columns so that they follow...

Views are normally (for good reason) not rendered in controller specs. If you need it to happen, use:

github.com

Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites.

Sometimes you want one distinct version of RubyGems to be installed to replicate the same behavior across multiple servers.

Removing features and merging those changes back can be painful. Here is how it worked for me.\

In cucumber you are able to run features in whatever directory you like. This also includes executing features in subdirectories...

makandra dev

This note summarizes the ruby exception hierarchy. Exception NoMemoryError ScriptError LoadError NotImplementedError SyntaxError SignalException Interrupt Timeout::Error # < ruby 1.9.2 StandardError...

blog.bitcrowd.net

To make the RSpec matcher of the authorization solution Consul work with Rspec 2.x read the following blog post...

If you're using Paperclip to store and convert images attached to your models, processing a lot of images will...

makandracards.com

Our rcov:all task for aggregated RSpec/Cucumber coverage was overhauled extensively. Among other things it now works for Rails 2...

Code coverage is the ratio of code lines kissed by a test vs. the total number of lines in your...

jstorimer.com

Guide to writing CLI scripts in Ruby that play nice with pipe chains.

github.com

When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...

For university I have to stay up-to-date with lecture documents. Since my university doesn't offer RSS feeds...

rhnh.net

I introduced DataMapper on my last two major projects. As those projects matured after I had left, they both migrated...

You have to specify the environment with -e env_name or RAILS_ENV=env_name if you want to run...