Sha256: 14003f3b187bcf257aea9fc2fac0873019334a2c6836a9be28617d64e13f8de7
Contents?: true
Size: 387 Bytes
Versions: 2
Compression:
Stored size: 387 Bytes
Contents
require 'helper' class ResponseApp include Newark get '/api' do { ok: true } end end class TestResponse < Minitest::Unit::TestCase include Rack::Test::Methods def app ResponseApp.new end def test_json_api get '/api' assert_equal "{\"ok\":true}", last_response.body assert_equal 'application/json', last_response.headers['Content-Type'] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
newark-0.0.6 | test/test_response.rb |
newark-0.0.5 | test/test_response.rb |