Sha256: 0a63b73c6f1d7c31bc741a32326e7e656475bc3f5953d4b4273aafdf8cee71b7
Contents?: true
Size: 1.11 KB
Versions: 9
Compression:
Stored size: 1.11 KB
Contents
shared_examples_for "CGI environment variables compliance" do specify "REQUEST_URI contains the request URI including query string" do cgi_envs = get('/welcome/cgi_environment?foo=escaped%20string') cgi_envs.should include("REQUEST_URI = #{@base_uri}/welcome/cgi_environment?foo=escaped%20string\n") end specify "PATH_INFO contains the request URI without the base URI and without the query string" do cgi_envs = get('/welcome/cgi_environment?foo=escaped%20string') cgi_envs.should include("PATH_INFO = /welcome/cgi_environment\n") end specify "QUERY_STRING contains the query string" do cgi_envs = get('/welcome/cgi_environment?foo=escaped%20string') cgi_envs.should include("QUERY_STRING = foo=escaped%20string\n") end specify "QUERY_STRING must be present even when there's no query string" do cgi_envs = get('/welcome/cgi_environment') cgi_envs.should include("QUERY_STRING = \n") end specify "SCRIPT_NAME contains the base URI, or the empty string if the app is deployed on the root URI" do cgi_envs = get('/welcome/cgi_environment') cgi_envs.should include("SCRIPT_NAME = #{@base_uri}\n") end end
Version data entries
9 entries across 9 versions & 3 rubygems