#259 open
manveru

webrat/mechanize treats Array as String

Reported by manveru | June 7th, 2009 @ 04:26 AM

On Ruby 1.9, Array#to_s is equivalent with Array#inspect, but lib/webrat/mechanize.rb still relies on the implicit Array#to_s in a string interpolation.
My patch fixes this by doing an explicit #join on the array in question.
This fix makes mechanize_session_spec pass on 1.9.

Comments and changes to this ticket

  • Bryan Helmkamp

    Bryan Helmkamp June 14th, 2009 @ 09:45 PM

    • State changed from “new” to “open”

    Thanks for the patch, Michael.

    My 1.9 install is acting up at the moment... Can you confirm that we had specs that were failing on 1.9 before this patch and pass after it?

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Attachments

Pages