diff options
Diffstat (limited to 'test/spec_response.rb')
-rw-r--r-- | test/spec_response.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/spec_response.rb b/test/spec_response.rb index 3cd56664..ff7cba6f 100644 --- a/test/spec_response.rb +++ b/test/spec_response.rb @@ -466,8 +466,8 @@ describe Rack::Response do it "wraps the body from #to_ary to prevent infinite loops" do res = Rack::Response.new - res.finish.last.wont_respond_to(:to_ary) - lambda { res.finish.last.to_ary }.must_raise NoMethodError + x = res.finish + assert_equal x, x.flatten end end |