Sha256: f15d1c39f93be389460817c79748129618b2d828e727b5d1fd923fd54d5f61fe
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
require 'helper' require 'multi_json' class ResponseApp include Newark get '/api' do { ok: true } end end class TestResponse < MiniTest::Unit::TestCase include Rack::Test::Methods def app Rack::Lint.new(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
newark-0.0.8 | test/test_response.rb |