Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
This is surprisingly difficult when there is a with the same text on the page, but you really want to...
Online tool to test how a site behaves in popular desktop, tablet and phone resolutions.
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...
Tooltips that are delivered through HTML attributes are encoded. Decode entities before checking for their presence. Capybara: Then /^there should...
Some helpers for poking around at your Capybara driven browser's cookies in integration tests. Supports Capybara's bundled drivers...
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...
In order to chain greps on log files that are opened via tail -f test.log you have to use the...
The following snippet demonstrates how you could create excel files (with spreadsheet gem) and format columns so that they follow...
Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites.
In cucumber you are able to run features in whatever directory you like. This also includes executing features in subdirectories...
Our rcov:all task for aggregated RSpec/Cucumber coverage was overhauled extensively. Among other things it now works for Rails 2...
Code coverage is the ratio of code lines kissed by a test vs. the total number of lines in your...
When internationalizing your Rails app, you'll be replacing strings like 'Please enter your name' with t('.name_prompt'). You...
When you use google analytics to track your visitors interactions, you should ensure that it runs on your production site...
Instead of running all missing migrations on your test database with rake db:migrate RAILS_ENV=test you can also...
When using state_machine you sometimes need to know whether an object may execute a certain transition. Let's take...
To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...
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...
Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...
Never use raise_error without specifying the Error you expect. expect { do_a_lot_of_complicated_stuff }.to raise_error...