Using rails 2.1.0 and Ruby 1.8.7 with Mocha 0.14.0
I stub a class in environments/development.rb to avoid having my application contact a production server from the development environment.
If i use script/console and execute EmployeeID.find_by_Username(login).Employee returns 9999
But if I run script/server the same call returns the actual value from the database.
Any idea why the stub would be used?