Skip to content

Commit

Permalink
Email in Address
Browse files Browse the repository at this point in the history
  • Loading branch information
mariiillo committed Jul 1, 2020
1 parent f52e3c6 commit c50edda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/shipcloud/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Address < Base
include Shipcloud::Operations::Update
include Shipcloud::Operations::All

attr_accessor :company, :first_name, :last_name, :care_of, :street,
attr_accessor :company, :first_name, :last_name, :care_of, :street, :email,
:street_no, :zip_code, :city, :state, :country, :phone
attr_reader :id

Expand Down
4 changes: 3 additions & 1 deletion spec/shipcloud/address_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
city: 'Hamburg',
state: 'Hamburg',
country: 'DE',
phone: '040/123456789'
phone: '040/123456789',
email: 'max@mustermail.com',
}

describe '#initialize' do
Expand All @@ -30,6 +31,7 @@
expect(address.state).to eq 'Hamburg'
expect(address.country).to eq 'DE'
expect(address.phone).to eq '040/123456789'
expect(address.email).to eq 'max@mustermail.com'
end
end

Expand Down

0 comments on commit c50edda

Please sign in to comment.