Last active
December 23, 2015 22:08
-
-
Save akinsgre/6700701 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db_user.emp_id = EmployeeID.find_by_Username(login).Employee #Returns 9999 in script/console... but 1806 in script/server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def after_initialize | |
require 'test/unit' | |
require 'mocha/setup' | |
require 'employee_id' | |
EmployeeID.any_instance.stubs(:Employee).returns(9999) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment