[rspec-devel] [ rspec-Patches-12935 ] Remove requirement that mocha must be installed as a gem when used as mocking framework
noreply at rubyforge.org
noreply at rubyforge.org
Thu Aug 9 11:06:28 EDT 2007
Patches item #12935, was opened at 2007-08-09 09:16
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=12935&group_id=797
Category: mock module
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Ryan Kinderman (ryankinderman)
>Assigned to: Aslak Hellesøy (aslak_hellesoy)
Summary: Remove requirement that mocha must be installed as a gem when used as mocking framework
Initial Comment:
Rationale:
I often localize/freeze the libraries that are required to run the tests in my projects specifically to simplify the setup time required to get up and running with development. By requiring that mocha be installed as a gem, one of the core utilities used in my tests is prevented from being frozen.
Solution:
Remove the "require 'rubygems'" and "gem 'mocha'" commands from the mock_frameworks/mocha.rb. This puts the onus of making that library available on the developer who is using the library. They should know best how to do this for their project's purposes anyways.
----------------------------------------------------------------------
>Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2007-08-09 11:06
Message:
Applied in r2325. I also modified the other mock framework plugins accordingly.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=12935&group_id=797
More information about the rspec-devel
mailing list