In order to chain greps on log files that are opened via tail -f test.log you have to use the...

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

makandra dev
github.com

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

makandra dev
github.com

Use the command geordi migrate to migrate your databases and to prepare them before running tests. The abbrevation geordi m...

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...

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...

github.com

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

When you use google analytics to track your visitors interactions, you should ensure that it runs on your production site...

hacks.mozilla.org

Since Firefox 8 it is possible to define custom context menus (right clicking) with HTML markup.

If you get the above error when running tests in bulk (but not individually), it's actually the fault of...

When you have objects in your database that hold latitude and longitude and you want to find others that are...

Instead of running all missing migrations on your test database with rake db:migrate RAILS_ENV=test you can also...

When using state_machine you sometimes need to know whether an object may execute a certain transition. Let's take...

By default, Rails views escape HTML in any strings you insert. If you want to insert HTML verbatim, you need...

danhixon.github.com

If you encounter the error message above when running cucumber, just execute... rm rerun.txt ...in the Rails directory.

To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...

The Rails logger will store its content in a buffer and write it into the file system every 1000 lines...

When your Cucumber feature seems to forget cookies / sessions when you run it with Selenium check if the test travels...

github.com

Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...

Defining a custom to_json method for your classes can be useful. Do it properly or you will "randomly" get...

makandra dev

Never use raise_error without specifying the Error you expect. expect { do_a_lot_of_complicated_stuff }.to raise_error...

You can use the step definition below to say this: Then the "Last name" field should have an error