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...
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...
Scenario outlines allow us to more concisely express repetitive examples through the use of a template with placeholders.
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...
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...
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...
The solution in this card is based on a stack overflow post by Leventix. If you need to make request...
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...
Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...
Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...
You can use the step definition below to say this: Then the "Last name" field should have an error
When cucumber encounters a failing step in a @javascript feature, the selenium browser window instantly closes. Sometimes you do not...
features are pre-sold without any option to negotiate what’s important and what may be left out, you inevitably...
We are consistently having trouble with selenium-webdriver > 2.5.0 where whenever we try to select an option from a Capybara...