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:
parent
a0a84e4052
commit
f2cd56c465
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue