Permalink
Browse files

Suddenly discovered 'list'. Abbreviating the nested cons calls

  • Loading branch information...
1 parent be25ef0 commit 3fa355fee9c3a9c4889125b56b8611edaa255aa0 @JackDanger JackDanger committed Jun 2, 2008
Showing with 1 addition and 3 deletions.
  1. +1 −3 test/test_web.rb
View
@@ -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

0 comments on commit 3fa355f

Please sign in to comment.