Permalink
Browse files

avoid to_enum warning on 2.0

  • Loading branch information...
1 parent 59fe11b commit 0ddc7695789b83e955a899612a0a3fc9ad3742cf @rkh rkh committed Mar 10, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 test/response_test.rb
@@ -8,8 +8,7 @@ class ResponseTest < Test::Unit::TestCase
end
def assert_same_body(a, b)
- enum = Enumerable.const_get(:Enumerator)
- assert_equal enum.new(a).to_a, enum.new(b).to_a
+ assert_equal a.to_enum(:each).to_a, b.to_enum(:each).to_a
end
it "initializes with 200, text/html, and empty body" do

0 comments on commit 0ddc769

Please sign in to comment.