Development environment setup Rails Composer : Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server...

stackoverflow.com

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

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...

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

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

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

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

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

github.com

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

blog.hashrocket.com

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

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

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

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

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

makandra dev
github.com

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

github.com

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

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

github.com

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

robots.thoughtbot.com

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

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

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

qatechnotes.blogspot.com

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

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