Sha256: 90fc896224bc011b25898fb71a0a5d790a6ebfa47d61dcef34bc28b27a3e579f
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $:.unshift(File.dirname(__FILE__)) %w(rack rack/test rack-middleware-google-image rspec).each {|f| require f} class TestRackApp DummyBody = <<-HTML <html> <head></head> <body> <p>Dummy Rack!</p> </body> </html> HTML DummyImage = <<-BIN blablabla BIN def call(env) case env['PATH_INFO'] when '/' [200, {"Content-Type" => "text/html"}, [DummyBody]] when /.*\.jpg/ [200, {"Content-Type" => "image/ipg"}, [DummyImage]] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-middleware-google-image-0.0.3 | spec/spec_helper.rb |
rack-middleware-google-image-0.0.2 | spec/spec_helper.rb |