flexmock calls `singleton_class` which is not defined.
flexmock calls
singleton_classwhich is not defined.