spec/unit/braintree/xml_spec.rb in braintree-1.1.3 vs spec/unit/braintree/xml_spec.rb in braintree-1.2.0

- old
+ new

@@ -92,9 +92,14 @@ it "works for arrays" do hash = {:root => {:items => [{:name => "first"}, {:name => "second"}]}} verify_to_xml_and_back hash end + it "works for arrays of strings" do + hash = {:root => {:items => ["first", "second"]}} + verify_to_xml_and_back hash + end + it "type casts booleans" do hash = {:root => {:string_true => "true", :bool_true => true, :bool_false => false, :string_false => "false"}} verify_to_xml_and_back hash end