This is for you if you get this error: cucumber.yml was found, but could not be parsed. Please refer to...
In your Cucumber features you can't really click hidden elements when using Selenium (it does work for a plain...
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 you're getting this error, one possibility is that you've created a select field for an association instead...
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...
Framework to write command-line apps in Ruby. Comes with a nice way of processing parameter options, some utility classes...
Scenario outlines allow us to more concisely express repetitive examples through the use of a template with placeholders.
The SQL code generated by Graticule's spherical distance computation is insufficient and can lead to NULL distances in edge...
If you get the above error when running tests in bulk (but not individually), it's actually the fault of...
When you have objects in your database that hold latitude and longitude and you want to find others that are...
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...
If you get an error like this: Unable to launch /home/bruce/Projects/myproject/tmp/capybara/capybara-201110311210111407691101.html ... update your launchy gem. It failed for us in...
By default, Rails views escape HTML in any strings you insert. If you want to insert HTML verbatim, you need...
If you encounter the error message above when running cucumber, just execute... rm rerun.txt ...in the Rails directory.
RSpec 1 (Rails 2) With the most recent spec_candy.rb helpers you can say: User.stub_any_instance(:foo => :bar) user = User.new...
To show the collation of your tables you have to login to the MySQL console and execute SHOW TABLE STATUS...
The solution in this card is based on a stack overflow post by Leventix. If you need to make request...
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...
RSpec lets you define the arguments with which you expect a method to be invoked: subject.should_receive(:say).with('hello...
Capybara will match elements outside of a page's tag. For example, the step definitions below match nodes in a...