Rspec stub a constant that is a class instnace

后端 未结 0 1340
無奈伤痛
無奈伤痛 2020-11-27 21:38

I am testing a class that uses a constant for an instantiated class, like this:

class UsersFilter 
  ACCOUNTS = UserManagement.new 

  ...
 
  def find_user_b         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题