I hope you don't mind, but I'm copying this email to the Mocha mailing list. I don't have a lot of time to help you, so I thought it would increase your chances of getting help.
Date: 15 February 2011 12:43:21 GMT
Subject: Please help in regard with Mocha
I am new to Rails platform, I am in the process of re-writing unit test case for and web application (for which unit cases where not updated for 2 years :( ).
My problem is when I start running unit test case I am getting the following:
Loaded suite ../install/local/ruby-1.8.7-p299/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Finished in 0.000178 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
with the following code in test_helper.rb
ENV["RAILS_ENV"] = "test"
#require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
And when I un-comment the require 'test_help' I get
`load_missing_constant': uninitialized constant Mocha::Integration (NameError)
I am using mocha 0.9.10. And the application has been upgraded to Rails 2.3.8 a month ago.
Please give me your suggestions on this issue.
Thanks & Regards