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

Capybara does not play nice with sites that have some actions protected by SSL, some not. A popular way to...

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

github.com

A fake filesystem. Use it in your tests.

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

We built cucumber_spinner to have a progress bar for Cucumber features, which also outputs failing scenarios as soon as...

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

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

script/cucumber features/feature_name.feature Or, if you don't care about speed, you can use rake: rake features FEATURE=features/feature_name.feature

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

tmp/* storage/* db/*.sqlite3 db/schema.rb db/structure.sql public/system .project .idea/ public/javascripts/all* public/stylesheets/all* public/stylesheets/*.css config/database.yml *~ *#* .#* .DS_Store webrat-*.html

makandra dev

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

jqueryElement.is(':checked')

makandra dev
github.com

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

railscheck.rubyforge.org

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

log.reflectivesurface.com

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