Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Suddenly discovered 'list'. Abbreviating the nested cons calls

  • Loading branch information...
commit 3fa355fee9c3a9c4889125b56b8611edaa255aa0 1 parent be25ef0
@JackDanger JackDanger authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 test/test_web.rb
View
4 test/test_web.rb
@@ -40,9 +40,7 @@ def setup
# this app returns the SERVER_INFO from the env passed to it
# TODO: come up with a better method for easily returning these values
eval! '(defwebapp "/who-am-i" (lambda (env)
- (cons "200"
- (cons (quote ("Content-Type" "text/html"))
- (env "PATH_INFO")))))'
+ (list "200" (quote ("Content-Type" "text/html")) (env "PATH_INFO"))))'
end
def test_serves_string_resource
Please sign in to comment.
Something went wrong with that request. Please try again.