Cucumber scenarios that are tagged with @javascript so they run with Selenium are very slow. You might not want to...
The attached RSpec matcher exist_in_database checks if a given record still exists in the database and has not...
We are maintaining some vintage projects with tests written in Test::Unit instead of RSpec. Mocks and stubs are not...
track down warnings and to see failing specs immediately or to get an overview of the core...
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...
Adds a slide out panel to your Rails application that directs clients to test stories that have been marked as...
jQuery offers many different methods to move a selection through the DOM tree. These are the most important: $element.find(selector...
So you are comparing two Time objects in an RSpec example, and they are not equal, although they look equal...
In order to cover some edge cases you rarely care about, Range#include? will become very slow in Ruby 1.9...
If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...
If you want to get a deep understanding of how closures, blocks, procs & lambdas in Ruby work, check out the...
A while ago we were working on an application that had an entire version specially created for mobiles, such as...
Note: For PostgreSQL you should use advisory locks. For MySQL we still recommend the solution in this card.
When you have a Cucumber step like Then I should see "Did you see those \"quotation marks\" over there...
To test whether two arrays have the same elements regardless of order, you can use the =~ matcher in RSpec < 2.11...
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...
The idea is this: you take a job that you'd rather not do manually, and describe it to babushka...
A check if two date or time ranges A and B overlap needs to cover a lot of cases:
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...