11 Feb
2011
11 Feb
'11
2:24 p.m.
I wanted to try using mocha to write unit tests with mocks. After requiring "rubygems" a NoMethodError exception was thrown when attempting to run the tests. The method which wasn't found was 'run'. If I remove the call to require "rubygems" my test fails because I can't use mocha but the NoMethodError exception which was thrown is not thrown anymore. Am I missing something? Thanks, Gabriel Ayuso