This project is archived and is in readonly mode.

#403 ✓wontfix
Chad Humphries

Mocha is required by setup_and_teardown.rb in all environments and modes

Reported by Chad Humphries | June 12th, 2008 @ 04:57 PM

The following code snippet is where it happens. Mocha becomes available in all environments, and also in script/console, script/server, etc.

          require 'mocha'
          base.alias_method_chain :run, :callbacks_and_mocha
        rescue LoadError
          base.alias_method_chain :run, :callbacks

This could cause other testing frameworks or even test/unit tests to encounter problems as mocha will be included along side whatever mocking framework the user actually is using. This doesn't seem to cause any issues currently, but it definitely should be cleaned up.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

Referenced by