This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...

mock.isssues.com

Sometimes in the course of development you may need to mock HTTP responses. This is a simple service to return...

github.com

...for Ruby. It could be run periodically from a scheduler and check if application tests are broken. In case of failed tests Cerberus sends notification to developers...

blog.whatwg.org

It turned out that the test subject didn't know that longdesc even existed before the tester told him about it. Can you blame him...

github.com

Rake tasks to run specs and tests in parallel, to use multiple CPUs and speedup test runtime...

mockito.org

Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with clean & simple API. Mockito doesn't give you hangover because the tests are very...

code.google.com

RESTClient is a Java application to test RESTful webservices. It can be used to test variety of HTTP communications...

github.com

Test spies are a form of test double that preserves the normal four-phase unit

Don't write resources :people, :concerns => :trashable Write resources :people do concerns :trashable end Why Writing a controller...

When you develop a gem and you have a Gemfile in your project directory, you might be surprised that your...

Spreewald's patiently repeats the given block again and again until it either passes or times out.

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

If you stub a method or set expectations with should_receive these stubbed methods may also yield blocks. This is...

sslscan is a nice tool to show details about TLS/SSL connections: ~> sslscan some-host-at.makandra.de Testing SSL server some-host-at.makandra.de on port 443 Supported Server Cipher(s): Failed SSLv3 256 bits ECDHE-RSA...

When refactoring a sequence of steps to a new, more descriptive step, you can use the steps method and Ruby...

Sometimes, you might have duplicate links on a page. Trying to click those links will by default cause Capybara to...

class Note does 'strip_carriage_returns', :prose, :code end Here is the test that goes with it: describe Note do describe 'before_validation' do it_should_run_callbacks...

When updating WebMock, be prepared that your specs may send real requests into the depths of the internet unless you...

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

validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...

If rspec hangs with no output and you dont get a backtrace neither with --backtrace nor by just killing it...

If you're writing a spec for an application using Resque, you may need to work off queues manually without...

You can use record.send(:update_without_callbacks) or record.send(:create_without_callbacks) This can be used as a...

If you are trying to inspect timings in JavaScript, you can use console.time and console.timeEnd which will write to your...