1
I’m using require "Singleton" to make a certain class only be instantiated once. However, when running rspec tests, I get the following error:
Nomethoderror: private method `new' called for Minhaclasse.
I’m not instantiating the class with new
, but rather picking up the reference to the object with MinhaClasse.instance
. How to solve this problem?
You can show the part of the code of your tests that cause the problem (instantiating the class with
new
)?– Guilherme Bernal