Fix test_with_rack_env example in README

First, there was a missing quote, and second :agent is more
clear than HTTP_USER_AGENT.
This commit is contained in:
Markus Prinz 2009-03-02 11:42:49 +01:00 committed by Ryan Tomayko
parent 93b19a3492
commit c2940f62ed
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ helper methods for testing your Sinatra app:
end
def test_with_rack_env
get '/', {}, 'HTTP_USER_AGENT => 'Songbird'
get '/', {}, :agent => 'Songbird'
assert_equal "You're using Songbird!", @response.body
end
end