@@ -0,0 +1,718 @@
+import fudge%0Afrom bottling.factory import BottleSingletonAppLoader%0A%0A%0Aclass describe_init:%0A%0A    def it_initializes_with_given_options(self):%0A        ref = 'my_module:app'%0A        kind = None%0A        %0A        loader = BottleSingletonAppLoader(ref, kind)%0A%0A        assert loader.ref == ref%0A        assert loader.kind == None%0A%0A%0Aclass describe_load:%0A    %0A    @fudge.patch('bottle.load_app')%0A    def given_no_config_or_runtime_dependencies(self, bottle_load_app):%0A        app_ref = 'my_module:app'%0A        (bottle_load_app%0A            .expects_call()%0A            .with_args(app_ref)%0A            .returns(%7B%7D))%0A        loader = BottleSingletonAppLoader(ref=app_ref)%0A%0A        app = loader.load()%0A%0A        assert app is not None%0A

Add loader for singleton apps