7o-hga
Last Updated: February 25, 2016
·
421
· depy

Stubing class constants with RSpec

First of all. This is somewhat good indicator that you code isn't loosly coupled. But if you still want to write tests around it first to have at least some minimum guarantee that your code is working you can use "stub_const".

Example...