fix test for Ruby 2.0

This commit is contained in:
Konstantin Haase 2013-03-10 13:04:06 +01:00
parent a045a3f8f6
commit 84a0da39ec
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@ class RequestTest < Test::Unit::TestCase
assert_equal 'image', request.preferred_type.split('/').first
String.instance_methods.each do |method|
assert request.preferred_type.respond_to? method
next unless "".respond_to? method
assert request.preferred_type.respond_to?(method), "responds to #{method}"
end
end