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.12.5 spec/employee_spec.rb
caren-api-0.12.4 spec/employee_spec.rb
caren-api-0.12.3 spec/employee_spec.rb
caren-api-0.12.2 spec/employee_spec.rb
caren-api-0.12.1 spec/employee_spec.rb
caren-api-0.12.0 spec/employee_spec.rb
caren-api-0.11.1 spec/employee_spec.rb
caren-api-0.11.0 spec/employee_spec.rb
caren-api-0.10.0 spec/employee_spec.rb
caren-api-0.9.10 spec/employee_spec.rb
caren-api-0.9.9 spec/employee_spec.rb
caren-api-0.9.8 spec/employee_spec.rb
caren-api-0.9.7 spec/employee_spec.rb
caren-api-0.9.6 spec/employee_spec.rb
caren-api-0.9.4 spec/employee_spec.rb
caren-api-0.9.3 spec/employee_spec.rb
caren-api-0.9.2 spec/employee_spec.rb
caren-api-0.9.1 spec/employee_spec.rb
caren-api-0.9.0 spec/employee_spec.rb
caren-api-0.8.0 spec/employee_spec.rb