Back when Steak was first released, Capybara didn’t have any of the nice RSpec helpers it does now. A...
Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2
Cucumber scenarios that are tagged with @javascript so they run with Selenium are very slow. You might not want to...
Merging .po-files with Git is painful. There have been attempts of making Git more clever when trying to merge...
We are maintaining some vintage projects with tests written in Test::Unit instead of RSpec. Mocks and stubs are not...
You will occasionally need to clean out your database while keeping the schema intact, e.g. when someone inserted data in...
When you click a link or a press a button on a Selenium-controlled browser, the call will return control...
If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...
A while ago we were working on an application that had an entire version specially created for mobiles, such as...
When you have a Cucumber step like Then I should see "Did you see those \"quotation marks\" over there...
To improve your chances to get proper error messages, you can try ^ to start cucumber with the -b option, so...
This note describes a Cucumber step definition that lets you say: Then "Mow lawn" should be an option for "Activity...
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...
Are you adding a "Then show me the page" and re-run Cucumber whenever there is a failing scenario? Don...
Update: This trick probably isn't very useful anymore in Ruby 2.x. The Ruby GC has improved a lot...
If you want to iterate over a Range, but only look at every n-th element, use the step method...
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...
When you need to see the content of a page (i.e. not all the HTML but the relevant text body...
Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:
You can use these step definitions: Then /^I should not see an error$/ do (200 .. 399).should include(page.status_code...
The first thing you need to understand is that the purpose of refinements in Ruby 2.0 is to make monkey...