Module: MockServerThin::Methods
- Defined in:
- lib/mock_server_thin.rb
Instance Method Summary collapse
Instance Method Details
#mock_server(opts = {}, &block) ⇒ Object
62 63 64 65 66 |
# File 'lib/mock_server_thin.rb', line 62 def mock_server(opts = {}, &block) app = Class.new(Sinatra::Base) app.class_eval(&block) @server = MockServerThin.new(app, opts, &block).start end |