module RailsConnector module CmsTestRequest def for_cms_object(test_obj = nil) # prepare the env as if the given obj was loaded by CmsEnv env[RailsConnector::CmsEnv::OBJ_ENV_KEY] = test_obj if test_obj end end end