Skip to content
Browse files

fix test for Ruby 2.0

  • Loading branch information...
1 parent a045a3f commit 84a0da39ec0e73a1d8612fb78d084794f1755390 @rkh rkh committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/request_test.rb
View
3 test/request_test.rb
@@ -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

0 comments on commit 84a0da3

Please sign in to comment.
Something went wrong with that request. Please try again.