Skip to content

Commit

Permalink
avoid to_enum warning on 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Mar 10, 2013
1 parent 3223f19 commit 397dbc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/response_test.rb
Expand Up @@ -6,8 +6,7 @@ class ResponseTest < Test::Unit::TestCase
setup { @response = Sinatra::Response.new }

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
Expand Down

0 comments on commit 397dbc7

Please sign in to comment.