Sha256: 27991b979927dc527fe76f874089aa0fc5aaf36297614ca12a6568ffb90e6649
Contents?: true
Size: 1.58 KB
Versions: 24
Compression:
Stored size: 1.58 KB
Contents
require 'spec_helper' describe "Client", "converting to xml" do before do @client_a = Caren::Client.new( :external_id => 1, :uid => "ABC123", :first_name => "Andre", :last_name => "Foeken", :male => true, :date_of_birth => 80.years.ago.to_date, :address_street => "Sesamestreet 1", :address_zipcode => "7500AA", :address_city => "Groenlo", :address_country => "The Netherlands" ) @client_b = Caren::Client.new( :external_id => 2, :uid => "ABC456", :first_name => "Oscar", :last_name => "Foeken", :male => true, :date_of_birth => 80.years.ago.to_date, :address_street => "Sesamestreet 1", :address_zipcode => "7500AA", :address_city => "Groenlo", :address_country => "The Netherlands" ) end it "should be able to convert a client to valid xml" do @client_a.should convert_to_valid_caren_xml end it "should be able to convert an array of people to valid xml" do [@client_a,@client_b].should convert_to_valid_caren_array_xml end end
Version data entries
24 entries across 24 versions & 1 rubygems