Sha256: 7865042cacf848b1592304a41c6012bef993509aaa82ef7afd8e049ea3548913
Contents?: true
Size: 410 Bytes
Versions: 20
Compression:
Stored size: 410 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Hyperdrive::Middleware::Accept do def app inner_app = ->(env) { [200, {}, env['hyperdrive.accept'].values.join(", ")] } Hyperdrive::Middleware::Accept.new(inner_app) end it "parses the accept header" do get '/', {}, default_rack_env last_response.body.must_equal 'application/vnd.hyperdrive.things+hal+json, application/json' end end
Version data entries
20 entries across 20 versions & 1 rubygems