Imperative vs Declarative Scenarios in User Stories

Posted About 13 years ago by Lexy.
benmabey.com

Bryan talked about the differences between imperative and declarative scenarios. In my opinion, both styles have benefits and should be...

Acceptance testing using Capybara's new RSpec DSL

Posted About 13 years ago by Lexy.
jeffkreeftmeijer.com

Back when Steak was first released, Capybara didn’t have any of the nice RSpec helpers it does now. A...

PhantomJS: Headless WebKit with JavaScript API

Posted About 13 years ago by Lexy.
phantomjs.org

PhantomJS is a minimalistic headless WebKit. It has fast and native support for various web standards: DOM handling, CSS selector...

Upgrading Cucumber and Capybara to the latest versions available for Rails 2

Posted About 13 years ago by Ulrich Berkmueller.

Specify these gem versions in your Gemfile: gem 'cucumber', '~> 1.3.0' gem 'cucumber-rails', '= 0.3.2' # max version for Rails 2

Check that an element is hidden via CSS with Spreewald

Posted About 13 years ago by Henning Koch.

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

Closures in Ruby

Posted About 13 years ago by Dominik Schöler.
innig.net

If you want to get a deep understanding of how closures, blocks, procs & lambdas in Ruby work, check out the...

Configuring User Agents with Capybara + Selenium Webdriver

Posted About 13 years ago by Lexy.
blog.plataformatec.com.br

A while ago we were working on an application that had an entire version specially created for mobiles, such as...

Testing if two date ranges overlap in Ruby or Rails

Posted About 13 years ago by Henning Koch.

A check if two date or time ranges A and B overlap needs to cover a lot of cases:

Silencing Deprecation Warnings in Rspec

Posted Over 13 years ago by Lexy.
justinfrench.com

If you’re testing the behavior of deprecated code in your Ruby project, the warning messages littered throughout your spec...

Thoughtbot's experiences with headless Javascript testing

Posted Over 13 years ago by Lexy.
robots.thoughtbot.com

Selenium has been the siren song that continually calls out to us. Unfortunately, in practice we’ve been unable to...

Terminus: a client-side Capybara driver

Posted Over 13 years ago by Lexy.
blog.jcoglan.com

Terminus is a Capybara driver where most of the driver functions are implemented in client-side JavaScript. It lets you...

Standalone Cucumber Test Suite

Posted Over 13 years ago by Lexy.
github.com

Sometimes you inherit a non Rails or non Rack based web app such as PHP, Perl, Java / JEE, etc. I...

Cucumber step to match table rows with Capybara

Posted Over 13 years ago by Henning Koch.

These steps are now part of Spreewald. This note describes a Cucumber step that lets you write this:

The WordCount Simulation

Posted Over 13 years ago by Lexy.
testobsessed.com

So this is the simulation that I use in my Agile Testing class, as well as in other contexts where...

Testing state_machine callbacks without touching the database

Posted Over 13 years ago by Henning Koch.

You should test the callback methods and its correct invocation in two separate tests. Understand the ActiveRecord note before you...

Testing validates_format_of with Shoulda matchers

Posted Over 13 years ago by Henning Koch.

Don't use should validate_format_of(...) because that matcher works in weird ways. Use the allow_value matcher instead...

Faking and testing the network with WebMock

Posted Over 13 years ago by Henning Koch.
github.com

An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...

defunkt's fakefs at master - GitHub

Posted Over 13 years ago by Lexy.
github.com

A fake filesystem. Use it in your tests.

MySQL replication how-to

Posted Over 13 years ago by Arne Hartherz.

This may be awkward to set up, but will work once you're done. Fun facts:

Cerberus: Home

Posted Over 15 years ago by Lexy.
cerberus.rubyforge.org

Cerberus is a lightweight and easy-to-use Continuous Builder software for Ruby. It could be run periodically from a...

Reflective Surface » Tests: Pragmatism or ideology?

Posted About 15 years ago by Lexy.
log.reflectivesurface.com

The argument that using tests is a ideologic waster of time fails when one considers how it can help to...

Fresh and Simple Ways to Test Cross-Browser Compatibility | Freelance Folder

Posted About 15 years ago by Lexy.
freelancefolder.com

In this article we’ve listed 7 fresh and simple tools for cross-browser compatibility testing, tools that actually make...