Spreewald 0.6.1 makes it easier to inspect form values

Posted Over 10 years ago by Henning Koch.

The new version of Spreewald makes it easier to inspect form values. Testing the value of any type of input...

Testing shared traits or modules without repeating yourself

Posted Over 10 years ago by Henning Koch.

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

Pitfall: ActiveRecord callbacks: Method call with multiple conditions

Posted Almost 11 years ago.

In the following example the method update_offices_people_count won't be called when office_id changes, because it...

Javascript: Comparing two arrays for equality

Posted About 11 years ago by Henning Koch.

Don't Google this, you will lose all will to live. Instead use Object#isEqual() from Lodash or Underscore.js:

Capturing signatures on a touch device

Posted About 11 years ago by Tobias Kraze.

If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...

How to solve Selenium focus issues

Posted Over 11 years ago by Henning Koch.

Selenium cannot reliably control a browser when its window is not in focus, or when you accidentally interact with the...

Test your CSS rendering output with GreenOnion

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

No one wants to cry over regression issues in views; does testing HTML and CSS have to be such a...

Silencing Your Staging Environment - The Hashrocket Blog

Posted Over 11 years ago by Henning Koch.
blog.hashrocket.com

Testing with real live production data does come with at least one catch. All those real live users in your...

How to: Specify size of Selenium browser window

Posted Almost 12 years ago by Arne Hartherz.

Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...

Use a special version of Chrome for selenium (and another for your everyday work)

Posted Almost 12 years ago by Christoph Beck.

Sometimes you need a special version of chrome because it has some features you need for testing, like in this...

Authorize allowed values with assignable_values

Posted Almost 12 years ago by Henning Koch.

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

VirtualBox host IP address and hostname

Posted About 12 years ago by Arne Hartherz.

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

colszowka/simplecov - GitHub

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

Code coverage for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites.

davetron5000/methadone - GitHub

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

Framework to write command-line apps in Ruby. Comes with a nice way of processing parameter options, some utility classes...

MySQL: For each group, retrieve a comma-separated list of values in a given column

Posted Over 12 years ago by Henning Koch.

The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...

xdissent/ievms - GitHub

Posted Over 12 years ago by Lexy.
github.com

Microsoft provides virtual machine disk images to facilitate website testing in multiple versions of IE, regardless of the host operating...

Use Capybara on any HTML fragment or page

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

I think this pattern is really useful not just for upgrading suites from Webrat, but really anywhere you have an...

Linux: Create file of a given size

Posted Almost 13 years ago by Arne Hartherz.

Sometimes you need a file of some size (possibly for testing purposes). On Linux, you can use dd to create...

RubyMine crashes Ubuntu 11.04 window decorator on exit

Posted Almost 13 years ago by Arne Hartherz.

My RubyMine (and it seems like many other Java GUI applications) crashes the Compiz window decorator almost every time on...

"no such file to load require_relative (MissingSourceFile)" after installing ruby-debug

Posted Almost 13 years ago.
qatechnotes.blogspot.com

If you encounter above mentioned failiure message after installing the ruby-debug gem then you have to explicitly require linecache...

How to test resource_controller hooks

Posted Almost 13 years ago by Arne Hartherz.

When using the resource_controller gem you often hook onto events like this: update.before do do_something end

Matching elements on complex web pages with Webrat

Posted Almost 13 years ago by Lexy.
devblog.imedo.de

XPath matchers can be combined with CSS-selector matchers. This is really useful if not, for example, the content of...

thoughtbot/capybara-webkit

Posted About 13 years ago by Lexy.
github.com

A capybara driver that uses WebKit via QtWebKit.

wycats/artifice

Posted About 13 years ago by Lexy.
github.com

Artifice allows you to replace the Net::HTTP subsystem of Ruby with an equivalent that routes all requests to a...