Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 394 Bytes
require './app.rb'
Bundler.require :test
require 'minitest/autorun'
describe App do
include Rack::Test::Methods
def app; App end
describe 'any request' do
it 'returns google.com with EM' do
EM.synchrony do
get '/'
last_response.status.must_equal 200
(last_response.body.length > 0).must_equal true
EventMachine.stop
end
end
end
end