Sha256: b6db3bff631b076cf6564acb71bd5638458007ceabadbe274d9a10740ce89a52
Contents?: true
Size: 397 Bytes
Versions: 5
Compression:
Stored size: 397 Bytes
Contents
#!/usr/bin/env ruby require 'sinatra' class Webserver < Sinatra::Base enable :protection get '/:name' do File.read(File.expand_path("../../files/test/#{params[:name]}", __FILE__)) end post '/rspec/:test' do case params[:test] when 'send' if params[:hello] == 'world' 'hello rspec' end end end get '/rspec/:test' do params[:test] end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
proxy_tester-0.0.6 | script/test_web |
proxy_tester-0.0.5 | script/test_web |
proxy_tester-0.0.4 | script/test_web |
proxy_tester-0.0.3 | script/test_web |
proxy_tester-0.0.2 | script/test_web |