require 'spec_helper' describe "FakeChargify::ProductFamily" do describe ".to_xml" do it "returns xml from object properties" do family = FakeChargify::ProductFamily.new family.accounting_code = '1234' family.handle = 'Starter' family.name = 'Subscription' family.to_xml.gsub(/\s/,'').should == """ 1234 Starter Subscription """.gsub(/\s/,'') end end end