Make Request#accept? test name more descriptive

This commit modifies the Request#accept? test by making it more verbose
and descriptive of the scenario in which it validates.
This commit is contained in:
sbonami 2013-11-01 14:04:14 -04:00
parent a0a84e4052
commit f2cd56c465
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class RequestTest < Test::Unit::TestCase
assert_equal '*/*', request.preferred_type.to_s
end
it 'does not accept when type parameter does not match HTTP_ACCEPT' do
it 'will not accept types not specified in HTTP_ACCEPT when HTTP_ACCEPT is provided' do
request = Sinatra::Request.new 'HTTP_ACCEPT' => 'application/json'
assert !request.accept?('text/html')
end