Sha256: a7eb773e81162543f6653a48fa41fd6559408b3c92461b1e0d85e4dbf25fbf5c

Contents?: true

Size: 844 Bytes

Versions: 62

Compression:

Stored size: 844 Bytes

Contents

require 'spec_helper'

describe "Employee", "converting to xml" do

  before do
    @employee_a = Caren::Employee.new( :external_id => 1,
                                   :first_name => "Andre",
                                   :last_name => "Foeken",
                                   :bio => "Aap")

    @employee_b = Caren::Employee.new( :external_id => 2,                                   
                                   :first_name => "Oscar",
                                   :last_name => "Foeken",
                                   :bio => "Noot")
  end

  it "should be able to convert a employee to valid xml" do
    @employee_a.should convert_to_valid_caren_xml
  end

  it "should be able to convert an array of employee to valid xml" do
    [@employee_a,@employee_b].should convert_to_valid_caren_array_xml
  end

end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
caren-api-0.5.20 spec/employee_spec.rb
caren-api-0.5.19 spec/employee_spec.rb
caren-api-0.5.18 spec/employee_spec.rb
caren-api-0.5.17 spec/employee_spec.rb
caren-api-0.5.16 spec/employee_spec.rb
caren-api-0.5.15 spec/employee_spec.rb
caren-api-0.5.14 spec/employee_spec.rb
caren-api-0.5.13 spec/employee_spec.rb
caren-api-0.5.12 spec/employee_spec.rb
caren-api-0.5.10 spec/employee_spec.rb
caren-api-0.5.9 spec/employee_spec.rb
caren-api-0.5.8 spec/employee_spec.rb
caren-api-0.5.7 spec/employee_spec.rb
caren-api-0.5.6 spec/employee_spec.rb
caren-api-0.5.5 spec/employee_spec.rb
caren-api-0.5.4 spec/employee_spec.rb
caren-api-0.5.3 spec/employee_spec.rb
caren-api-0.5.2 spec/employee_spec.rb
caren-api-0.5.1 spec/employee_spec.rb
caren-api-0.5.0 spec/employee_spec.rb