This error occurs when you already have a database.yml which defines the database for the cucumber environment instead of test...

Use protocol independent URLs whenever possible so that the browser will choose the protocol related to the protocol which the...

jetmore.org

swaks is a very nice tool to test SMTP. For the most linux distributions you can easily install it with...

Install and configure the AWS Command Line Interface Show existing certificates to test if the AWS Cli is working:

robots.thoughtbot.com

One of many useful techniques when your test suite needs to talk to a remote API.

Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

Geordi 0.16+ supports running selenium tests with project-specific firefox versions. Just update the gem. It will still default to...

If you need to test interaction with a remote API, check out the VCR gem as an alternative to Webmock...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

You might not know that Rails disables CSRF protection in tests. This means that if you accidentally forget to send...

Copy the attached file to features/support. This gets you a convenience method: Capybara.javascript_test? Is true for Selenium, capybara-webkit...

stackoverflow.com

If you want to have routes that are only available in tests (e.g. for testing obscure redirects), you can use...

Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...

In contrast to RSpec's included allow_value matcher, the attached matcher will also work on associations, which makes it...

rubydoc.info

Preface: Normally, you would not need this in integrations tests (probably that's why it is so hard to achieve...

The translation method translate and its alias t have bang brothers: translate! and t!. They will raise I18n::MissingTranslationData on...

makandra dev
snook.ca

CSS3 comes with new unit rem. It works like em but it is always relative to the element instead of...

stackoverflow.com

I had some problems with Git and the file spec/fixtures/ČeskýÁČĎÉĚÍŇÓŘŠŤÚŮÝŽáčďéěíňóřšťúůýž. After pulling the latest commits, it would show that...

When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...

Custom matchers are a useful RSpec feature which you can use to DRY up repetitive expectations in your specs. Unfortunately...

Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...

Simply give the select helper an option :disabled, passing either a single value or an array. You need to specify...

For Capybara, use this step: Then /^"([^"]*)" should be a disabled option for "([^"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector| with_scope(selector...