Rails - Singleton class troubles with rspec feature
问题 I have a problem testing a functionality that depends of a Singleton class. That class (ERPDao) is a suite with diferent methods that helps application to connect with external ERP vía REST services using Faraday gem. URLMaker is a helper class for build requests strings. When i try to run a feature spec that depends of one of this methods i have the following message in rspec: Failure/Error: result = ERPDao.instance.get_credit_info(erp_id) NoMethodError: undefined method `instance' for