Sha256: 3bc5ed8a9766f9223407f4c2040b39e0169c5ef598d83e5799fb57e0c9bd53dd
Contents?: true
Size: 1.56 KB
Versions: 64
Compression:
Stored size: 1.56 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
64 entries across 64 versions & 1 rubygems