Sha256: 4fe3267a95f72c528858b2297f34d8894967c1b0baa770e340be3bc440eb8acd
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
require_relative "test_helper" class TestApp < Pint::Application; end class PintAppTest < Test::Unit::TestCase include Rack::Test::Methods def app TestApp.new end def test_request get "/" assert last_response.ok? body = last_response.body assert body["Hello"] end def test_returns_content_type_html get "/" assert last_response.status, "200" assert last_response.headers["Content-Type"], "text/html" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pint-0.0.2 | test/test_application.rb |