Permalink
Browse files

fix test for Ruby 2.0

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