lib/interpol/stub_app.rb in interpol-0.2.1 vs lib/interpol/stub_app.rb in interpol-0.2.2

- old
+ new

@@ -37,9 +37,13 @@ set :interpol_config, config helpers Helpers not_found { JSON.dump(:error => "The requested resource could not be found") } before { content_type "application/json;charset=utf-8" } get('/__ping') { JSON.dump(:message => "Interpol stub app running.") } + + def self.name + "Interpol::StubApp (anonymous)" + end end end def build @app.interpol_config.endpoints.each do |endpoint|