Our rspec_candy gem now gives you three matchers: be_same_number_as Tests if the given number is the...
Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...
Don't say is_a?(ActiveRecord::NamedScope::Scope) because that is no longer true in Rails 3 and also doesn...
The will_paginate gem will show a default of 30 records per page. If you want to test pagination in...
The step we used in the past (Then "foo" should not be visibile) doesn't reliably work in Selenium features...
The step definition below lets you write: When I click on "Foo" This is useful in Selenium features where the...
Test suites usually grow over time as more and more development time is spent on a projects. Overall run-time...
When refactoring a sequence of steps to a new, more descriptive step, you can use the steps method and Ruby...
Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...
When you are scrolling up to investigate a test failure it is super annoying when the terminal scrolls back down...
Updated the card with our current best practice (shared app code and specs via symlinks).
If you use rails_admin, your specs pass with the rspec binary, but not using rake spec (or rake parallel...
RSpec's be_false behaves unexpectedly: nil.should be_false # passes, as the expectation returns true If you want to check...
In a nutshell: Capybara's find will not work properly on nodes from a list. Don't find on elements...
Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...
The Rails community has been abuzz with object-oriented programming, SOLID principles, laws, design patterns, and other principles, practices, and...
In large forms (30+ controls) new Capybara version become [extremely slow] when filling out fields. It takes several seconds per...
If you are using VNC to run Selenium tests, it may be hard to see what's going on since...
Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...
Note: You might also want to check out BoxCryptor which does pretty much the same, and is supported across many...
Sometimes you need a special version of chrome because it has some features you need for testing, like in this...
You can set the resolution and user agent used in selenium tests with chrome with the method described in this...
When you want to test how an web-application reacts in a specific resolution, you can set up a specific...
In order to navigate through the browser history. you can manipulate the window.history object via javascript like follows: