My class is structured like this:
class Abc
ONE_CLASS_LEVEL_CONSTANT_BEING_READ_FROM_DB = GloablAttributeValue.read_from_db
def some_method_that_use_above_constant
end
end
Now I want to unit test some_method_that_use_above_constant based on different values ββof ONE_CLASS_LEVEL_CONSTANT_BEING_READ_FROM_DB. Is it possible to exclude the ONE_CLASS_LEVEL_CONSTANT_BEING_READ_FROM_DB value so that I can test it for different values ββin rspec?
source
share