This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...
Our gem Mail Magnet allows you to override e-mail recipients in ActionMailer so all mails go to a given...
def task_with_hoptoad_notification(options) task(options) do begin yield rescue Exception => e Airbrake.notify(e) raise e
Sometimes you want to fetch associations for an ActiveRecord that you already loaded, e.g. when it has deeply nested associations...
There are three ways to define your own RSpec matchers, with increasing complexibility and options: 1) Use RSpec::Matchers.define
When you roll custom URLs with hacks like routing-filter, you can put a spec like this into spec/routing/routing_spec.rb:
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...
An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...
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...
To test concurrent code, you will need to run multiple threads. Unfortunately, when you use blocking system calls (e.g. locks...
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...
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...
Basic configuration Please keep this config simple. It should be a starting point for new developers learning Git. [user]
jqueryElement.is(':checked')
This project is (or will be) a best effort semi-static verifier for your Ruby on Rails projects. Delivered as...
In this article we’ve listed 7 fresh and simple tools for cross-browser compatibility testing, tools that actually make...
It turned out that the test subject didn't know that longdesc even existed before the tester told him about...
A surprisingly large number of plugins have no tests at all. Part of the reason might be that writing a...
Unfortunately, by default plugin tests are pretty bland. They use the plain unit test suite supplied by Ruby, and not...
Or, you can test your Rack application (or Sinatra, or Rails, or Merb) using arbitrary HTTP client libraries, to check...