All our projects have enum-like requirements like this: An attribute value must be included in a given set of...

After installing Bundler 1.1 you will get the following warning when running tests: WARNING: Cucumber-rails required outside of env.rb...

validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...

Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.

stackoverflow.com

In some older Capybara versions (e.g. 0.3.9), we're getting lots of deprecations warnings: Selenium::WebDriver::Element#select is deprecated...

When you are using NAT in your virtual machine (which you should), the host's IP address is: 10.0.2.2

When you regularly make use of Cucumber's "show me the page" step (or let pages pop up as errors...

This is surprisingly difficult when there is a with the same text on the page, but you really want to...

makandra dev
responsive.is

Online tool to test how a site behaves in popular desktop, tablet and phone resolutions.

This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...

If your project manager wants to do gatekeeping on a project, as a developer you need to follow the following...

If you're responsible for gatekeeping in a projects, here is a guide, what to do. In order to reduce...

When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...

makandra dev

The handy method has_select?(field, :selected => text) does not behave as expected with Cucumber 0.10.2, Capybara 0.4.1.2 and Selenium...

You probably know about the possibility to tag scenarios in Cucumber to run your own piece of code before the...

Don't you just hate to write Cucumber path helpers to be able to say this?

The attached patch lets you find a record by a string or number in any column: User.find_by_anything('carla...

In order to save the original value of a constant, set the new value and restore the old value after...

Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...

Ever seen this error when using Graticule? Numerical argument out of domain - acos Similarly to the to_sql problem for...

github.com

Some helpers for poking around at your Capybara driven browser's cookies in integration tests. Supports Capybara's bundled drivers...

When using Rails to truncate strings, you may end up with strings that are still too long for their container...

Possible Reason 1: parallel_tests - running more processes than features If you run old versions of parallel_tests with more...

The step definition below lets you say: Then I should see a field "Password" But I should not see a...