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...
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
This note shows how to merge an ugly feature branch with multiple dirty WIP commits back into the master as...
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
Basic configuration Please keep this config simple. It should be a starting point for new developers learning Git. [user]
I just finished reviewing Rails 2.3 Nested Object Forms. While a very nice and “magical” feature, I’ve got to...
Unfortunately, by default plugin tests are pretty bland. They use the plain unit test suite supplied by Ruby, and not...
In this presentation, I demoed Cucumber and Webrat. I also talked about Integrity and how I like to put it...