spec/shipcloud/address_spec.rb in shipcloud-0.10.0 vs spec/shipcloud/address_spec.rb in shipcloud-0.11.0
- old
+ new
@@ -11,11 +11,12 @@
street_no: '123',
zip_code: '12345',
city: 'Hamburg',
state: 'Hamburg',
country: 'DE',
- phone: '040/123456789'
+ phone: '040/123456789',
+ email: 'max@mustermail.com',
}
describe '#initialize' do
it 'initializes all attributes correctly' do
address = Shipcloud::Address.new(valid_attributes)
@@ -28,9 +29,10 @@
expect(address.zip_code).to eq '12345'
expect(address.city).to eq 'Hamburg'
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
describe '.create' do
it 'makes a new POST request using the correct API endpoint' do