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".
Written by Matjaz Muhic
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#