Sha256: a82bc2a0c867c2dd494cf3fcee1622fb1bc8b3574b4a6f9dd8468ee6ebe15798
Contents?: true
Size: 308 Bytes
Versions: 2
Compression:
Stored size: 308 Bytes
Contents
require "spec_helper" describe Rack::API, "Middlewares" do before do Rack::API.app do version :v1 do use AwesomeMiddleware get("/") {} end end end it "sends custom headers" do get "/v1" last_response.headers["X-Awesome"].should == "U R Awesome" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-api-0.1.1 | spec/rack-api/middlewares_spec.rb |
rack-api-0.1.0 | spec/rack-api/middlewares_spec.rb |