Sometimes the order in which strings appear on a page matters to you. Spreewald gives you steps like these:

Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach...

Capybara's has_css? matcher has a couple of options you might find useful. Check that a selector appears a...

timetobleed.com

This post will describe how I stumbled upon a code path in the Linux kernel which allows external programs to...

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

Both these approaches will keep your GET parameters -- and will only work for GET requests. Capybara: When /^I reload the...

Cucumber step argument transforms can be a powerful way to make your steps more flexible. Note however that if your...

RSpec's context (which is basically an alias for describe) takes over your whole application. No object may have its...

web.archive.org

With its you can switch the subject of an example to a method value of the current subject: describe Array...

This will not work (it always passes): Then the "Title" field should contain "" The value is turned into a regular...

youtube.com

power-rake db:migrate VERSION=20100913132321 By default the environments development, test, cucumber and performance are considered...

github.com

By default, Cucumber uses mocha. This note shows to use RSpec stubs and mocks instead. Rspec 1 / Rails 2

makandra dev

This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...

makandra dev

Update RubyGems and Passenger Bundler requires Rubygems >= 1.3.6. Run gem update --system if you have an older version.

github.com

Boolean attributes can now be set by appending "which", "that" or "who" at the end: Given there is a movie...

Spreewald has steps that let you test that e-mails have been sent, using arbitrary conditions in any combination.

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

So you screwed up and copied Paperclip secrets from one project to another. Here is a semi-automatic, painful way...

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

This is called "cherry-picking". git cherry-pick commit-sha1 Note that since branches are nothing but commit pointers, cherry...

stackoverflow.com

Reverting a commit means creating a new commit that undoes the old changes. Imagine the following commit history:

github.com

Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...