regular-expressions.info

You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...

wiki.github.com

The following example is from the Cucumber wiki: Given a blog post named "Random" with Markdown body """ Some Title, Eh...

makandra dev
github.com

Our awesome collection of rspec helpers (formerly known as "spec_candy.rb") is now available as a gem. It works, it is...

github.com

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

This will tunnel HTTP requests to one given domain and port through an intermediary SSH server: ssh -L 8080:targethost...

makandra dev
prototypejs.org

For example, to send a form and populate a preview div with the response. $('content_form').request({ parameters: { 'preview': "1...

When a Cucumber feature leaves your page through an external Link, Webrat has problems like "Could not find field: "E...

makandra dev

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

Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...

With defaults, RCov doesn't work the way you how you would like it to. To create a nice test...

makandra dev

To test concurrent code, you will need to run multiple threads. Unfortunately, when you use blocking system calls (e.g. locks...

makandra dev

rspec_spinner is a progress bar for RSpec which outputs failing examples as they happen (instead of all at the...

makandra dev

Install gem and plugin sudo gem install parallel script/plugin install git://github.com/grosser/parallel_tests.git Adapt config/database.yml test: database: xxx_test<%= ENV...

sudo gem install gettext --no-ri --no-rdoc sudo gem install fast_gettext --no-ri --no-rdoc script/plugin install git://...

When you need to patch an existing gem, one way is to "vendor" the gem by copying it into the...

web.archive.org

This note shows how to merge an ugly feature branch with multiple dirty WIP commits back into the master as...

To run a single test file: rake test:units TEST=test/unit/post_test.rb rake test:functionals TEST=test/functional/posts_controller_test.rb rake test:integration TEST...

makandra dev

Basic configuration Please keep this config simple. It should be a starting point for new developers learning Git. [user]

makandra dev

This is for people recovering from Subversion. Get an existing from the server for the first time git clone git@example.com...

jqueryElement.is(':checked')

railscheck.rubyforge.org

This project is (or will be) a best effort semi-static verifier for your Ruby on Rails projects. Delivered as...

freelancefolder.com

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

blog.whatwg.org

It turned out that the test subject didn't know that longdesc even existed before the tester told him about...

nubyonrails.com

A surprisingly large number of plugins have no tests at all. Part of the reason might be that writing a...