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...
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...
If you need to find out which of your local commits are not on the remote server do this:
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)
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...
If you modified git's history and the change was already pushed, you will usually get a ! [rejected] my-branch...
To change the commit message of the latest (unpushed, unmerged) commit, you can use git commit --amend
Lets say you need to make a change to a commit OLD_COMMIT, but this is not the most recent...
When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient...
Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...
E.g. when you're using a tagging gem, you have seen virtual attributes that get and set a string array...
In order to go back one page in your Cucumber tests, you can use the following step definition for Capybara...
To change a commit message of the most recent (unpushed) commit, you can simply use git commit --amend -m 'new...
Plugins (and gems) are typically tested using a complete sample rails application that lives in the spec folder of the...
Added utility methods for the Prototype Javascript framework.
This is non-trivial because you need to fake event objects and require different code for different browsers. Luckily, there...