github.com

Adds a slide out panel to your Rails application that directs clients to test stories that have been marked as...

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

There are two ways to define a class method from a Modularity trait. Note that the usual caveats regarding class...

web.archive.org

When you have a Cucumber step like Then I should see "Did you see those \"quotation marks\" over there...

On 32bit systems, the maximum representable Time is 2038-01-19 03:14:07 in UTC or 2038-01-19...

This tool is used on our application servers (and called when deploying) but it also works locally. Just call dumple...

When you try to remove a non-existing index using remove_index, the migration will incorrectly pass without an error...

github.com

jQuery plugin to register callback functions to keyboard shortkuts. Keyboard events in vanilla Javascripts are super-painful to work with...

Note: Consider not doing this. Use form models or vanilla methods instead. The :conditions option for Rails associations cannot take...

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

When defining a trait using the Modularity gem, you must take extra steps to define constants to avoid caveats (like...

In case https://www.rubydoc.info/ is to slow or offline, you can also read a gem documentation offline. Start a server...

Are you adding a "Then show me the page" and re-run Cucumber whenever there is a failing scenario? Don...

Call geordi clean from a project root to remove unused and unnecessary files inside it. This script is part of...

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

kernel.org

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

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

linux.die.net

If you need to find out which of your local commits are not on the remote server do this:

kernel.org

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

Every time you amend, rebase or reset, git commits get "overwritten". However, git still allows you to checkout those commits...

Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:

You can usually just use the eq matched to compare two numbers: expect(deal.total).to eq(120)

opensoul.org

Sometimes, you just need to shoot from the hip…or deploy your local changes without committing them. Put this snippet...

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