Sha256: 6ff1609781a2de4e8d59ac30e8bb8293729e0f8e2944639125197b2db5d1683d
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $:.unshift(File.dirname(__FILE__)) %w(rubygems rack rack/test rack/var_dump rspec).each {|f| require f} DummyBody = <<-EOH <html> <head></head> <body> <p>Dummy Rack!</p> </body> </html> EOH class TestRackApp def call(env) case env['PATH_INFO'] when '/' [200, {"Content-Type" => "text/html"}, [DummyBody]] when '/image.jpg' [200, {"Content-Type" => "image/ipg"}, [DummyBody]] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-var-dump-1.0.1 | spec/spec_helper.rb |
rack-var-dump-1.0.0 | spec/spec_helper.rb |
rack-var-dump-0.1.3 | spec/spec_helper.rb |