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...
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...
power-rake db:migrate VERSION=20100913132321 By default the environments development, test, cucumber and performance are considered...
By default, Cucumber uses mocha. This note shows to use RSpec stubs and mocks instead. Rspec 1 / Rails 2
This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...
Update RubyGems and Passenger Bundler requires Rubygems >= 1.3.6. Run gem update --system if you have an older version.
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.
You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...
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...
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...
Reverting a commit means creating a new commit that undoes the old changes. Imagine the following commit history:
Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...
When a Cucumber feature leaves your page through an external Link, Webrat has problems like "Could not find field: "E...
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...
We built cucumber_spinner to have a progress bar for Cucumber features, which also outputs failing scenarios as soon as...
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...