makandra dev
github.com

Gem to get Rails 3's new ActiveRecord query interface (where, order) and the new scope syntax (chaining scope definitions...

makandra dev
github.com

Gem to get Ruby 1.9 features in Ruby 1.8.

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

This is for you if you get this error: cucumber.yml was found, but could not be parsed. Please refer to...

Although it's tempting flirt with detecting mobile/touch devices with CSS media queries or Javascript feature detection alone, this approach...

In your Cucumber features you can't really click hidden elements when using Selenium (it does work for a plain...

After my update from MacOS X 10.6 Snow Leopard to 10.7 Lion the search function in Apple Mail stopped working...

Submit buttons in Rails come with a useful option :disable_with which will disable the button when clicked and change...

github.com

Framework to write command-line apps in Ruby. Comes with a nice way of processing parameter options, some utility classes...

When you have a complex recipe setup with multistage deployment you may run into this error: `role_list_from': unknown...

github.com

Scenario outlines allow us to more concisely express repetitive examples through the use of a template with placeholders.

apidock.com

Using rename_column, remove_column, etc. more than once in a migration makes that migration run slower than it should...

I have a pair of headphones connected to my desktop's back panel and a headset connected to the front...

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

makandra dev

ActiveSupport's memoize has a dangerous feature you might not know about. Assume you have class DeepThought extend ActiveSupport::Memoizable...

If you get an error like this: Unable to launch /home/bruce/Projects/myproject/tmp/capybara/capybara-201110311210111407691101.html ... update your launchy gem. It failed for us in...

danhixon.github.com

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

RSpec 1 (Rails 2) With the most recent spec_candy.rb helpers you can say: User.stub_any_instance(:foo => :bar) user = User.new...

stackoverflow.com

The solution in this card is based on a stack overflow post by Leventix. If you need to make request...

rubyinside.com

While 2.0 will include a number of syntax changes, new features and general improvements, mentioned below, it is anticipated to...

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

Capybara will match elements outside of a page's tag. For example, the step definitions below match nodes in a...