Use equal? to compare form_input to rack.input
authorJason Staten <jstaten07@gmail.com>
Thu, 18 Jul 2013 23:19:32 +0000 (17:19 -0600)
committerJason Staten <jstaten07@gmail.com>
Thu, 18 Jul 2013 23:19:32 +0000 (17:19 -0600)
commitb0593078ce792a380779528a6a135c066aa03515
tree16a2b6476ba5be7de44fbd79cadd427f331b6fe7
parent6829a8a0f416ea49a18f1e3e532ed1ece24e9ea4
Use equal? to compare form_input to rack.input

Using equal? provides consistent results of equality between 1.8, 1.9,
and 2.0 when comparing Tempfile objects.

In 1.8, == will change the position of the Tempfile.
In 1.9+, == compares Tempfiles correctly.

In 1.8, eql? compares Tempfiles correctly
In 1.9+, t.eql?(t) always returns false
lib/rack/request.rb
test/spec_request.rb