api.jquery.com

jQuery offers many different methods to move a selection through the DOM tree. These are the most important: $element.find(selector...

So you are comparing two Time objects in an RSpec example, and they are not equal, although they look equal...

rhnh.net

In order to cover some edge cases you rarely care about, Range#include? will become very slow in Ruby 1.9...

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

blog.plataformatec.com.br

A while ago we were working on an application that had an entire version specially created for mobiles, such as...

Note: For PostgreSQL you should use advisory locks. For MySQL we still recommend the solution in this card.

To test whether two arrays have the same elements regardless of order, you can use the =~ matcher in RSpec < 2.11...

This note describes a Cucumber step definition that lets you say: Then "Mow lawn" should be an option for "Activity...

babushka.me

The idea is this: you take a job that you'd rather not do manually, and describe it to babushka...

Then /^I should get a response with status (\d+)$/ do |status| response.status.should include(status) end Capybara Then /^I should...

This card describes a Cucumber step that lets you say: When I perform basic authentication as "username/password" and I visit...

You cannot use Array#join on an array of strings where some strings are html_safe and others are not...

Update: This trick probably isn't very useful anymore in Ruby 2.x. The Ruby GC has improved a lot...

justinfrench.com

If you’re testing the behavior of deprecated code in your Ruby project, the warning messages littered throughout your spec...

kernel.org

Git allows you to do a binary search across commits to hunt down the commit that introduced a bug.

When your site is mapped into the URL-space of another server using mod_proxy, ProxyPass and ProxyPassReverse, all requests...

These steps are now part of Spreewald. The step definitions below allow you to test the filename suggested by the...

The step definitions below allow you to write this in both Webrat and Capybara: When I follow "Download as PDF...

Our collection of the most useful Cucumber steps, Spreewald, now supports exact matching of form fields and lets you use...

kernel.org

The ‘merge.*.driver` variable’s value is used to construct a command to run to merge ancestor’s version, current...

When you need to see the content of a page (i.e. not all the HTML but the relevant text body...

You can use these step definitions: Then /^I should not see an error$/ do (200 .. 399).should include(page.status_code...

RSpec 1, RSpec 2 To test whether two arrays have the same elements regardless of order, RSpec 1 and 2...

When you just went through a long debug-fest and infested your code with dozens of debug messages, it can...