Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ENV["RACK_ENV"] = 'test'
- require 'rspec'
- require 'test/unit'
- require 'rack/test'
- require "sinatra/async/test"
- module AppRunner
- def app
- My::App.new
- end
- end
- World(Test::Unit::Assertions, Sinatra::Async::Test::Methods, AppRunner)
- def post_json(path,json)
- header 'Content-Type', 'application/json'
- apost path, json.to_json
- em_async_continue
- last_response
- end
Add Comment
Please, Sign In to add comment