rails/rails — pull request #15182 by zuhao (2014-05-19 14:32:22+00:00)
Title: Un-define :to_json for Customer class after stubbing.

Even though Mocha calls `unstub` for every test in teardown, we still need to explicitly undefine `:to_json` for the Customer model to prevent state changes.