chargify/chargify2 — pull request #3 by joshnabbott (2011-10-28 18:00:44+00:00)
Title: Specs passing using ruby 1.9.2

Some of the specs were failing with ruby 1.9.2 due to changes in Hash#to_s between ruby 1.8 and 1.9. 1.8 was returning an empty string where 1.9 is returning "{}". This meant that checking that the length of Hash_#to_s was returning 2 instead of 0 as expected. I've updated the code with a new check in place that will still allow those values to be a string, hash or integer, but does the proper checks to see if they're empty.