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

github.com

Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...

web.archive.org

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

blog.bitcrowd.net

When cucumber encounters a failing step in a @javascript feature, the selenium browser window instantly closes. Sometimes you do not...

agileweboperations.com

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

Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...

github.com

If you have different users for different servers, don't use set :user. Encode the username into the server definition...

Selenium does not speak SSL because it uses WEBrick that doesn't. When you use Selenium for Cucumber scenarios that...

When you don't know which options are available, but need to have an option selected, use this step.