Sha256: 55afcc968bbc2c7e76cfe5b2845a3f26867ed189d3f46941195ddf9453ad8869
Contents?: true
Size: 369 Bytes
Versions: 20
Compression:
Stored size: 369 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Hyperdrive::Middleware::Resource do def app inner_app = ->(env) { [200, {}, [env['hyperdrive.resource'].namespace]] } Hyperdrive::Middleware::Resource.new(inner_app, default_resource) end it "adds the requested resource to rack's env" do get '/' last_response.body.must_equal "things" end end
Version data entries
20 entries across 20 versions & 1 rubygems