|
55 | 55 | expect(sales_receipt.private_note).to eq("private") |
56 | 56 |
|
57 | 57 | expect(sales_receipt.total).to eq(10.00) |
| 58 | + |
| 59 | + billing_address = sales_receipt.bill_address |
| 60 | + expect(billing_address).to_not be_nil |
| 61 | + expect(billing_address.id).to eq "6" |
| 62 | + expect(billing_address.line1).to eq "Rebecca Clark" |
| 63 | + expect(billing_address.line2).to eq "Sunset Bakery" |
| 64 | + expect(billing_address.line3).to eq "1040 East Tasman Drive." |
| 65 | + expect(billing_address.line4).to eq "Los Angeles, CA 91123 USA" |
| 66 | + expect(billing_address.lat).to eq "34.1426959" |
| 67 | + expect(billing_address.lon).to eq "-118.1568847" |
| 68 | + |
| 69 | + shipping_address = sales_receipt.ship_address |
| 70 | + expect(shipping_address).to_not be_nil |
| 71 | + expect(shipping_address.id).to eq "3" |
| 72 | + expect(shipping_address.line1).to eq "1040 East Tasman Drive." |
| 73 | + expect(shipping_address.city).to eq "Los Angeles" |
| 74 | + expect(shipping_address.country).to eq "USA" |
| 75 | + expect(shipping_address.country_sub_division_code).to eq "CA" |
| 76 | + expect(shipping_address.postal_code).to eq "91123" |
| 77 | + expect(shipping_address.lat).to eq "33.739466" |
| 78 | + expect(shipping_address.lon).to eq "-118.0395574" |
| 79 | + |
| 80 | + ship_from_address = sales_receipt.ship_from_address |
| 81 | + expect(ship_from_address).to_not be_nil |
| 82 | + expect(ship_from_address.id).to eq "5" |
| 83 | + expect(ship_from_address.line1).to eq "1040 East Tasman Drive." |
| 84 | + expect(ship_from_address.city).to eq "Los Angeles" |
| 85 | + expect(ship_from_address.country).to eq "USA" |
| 86 | + expect(ship_from_address.country_sub_division_code).to eq "CA" |
| 87 | + expect(ship_from_address.postal_code).to eq "91123" |
| 88 | + expect(ship_from_address.lat).to eq "33.739466" |
| 89 | + expect(ship_from_address.lon).to eq "-118.0395574" |
58 | 90 | end |
59 | 91 |
|
60 | 92 | it "should initialize line items as empty array" do |
|
0 commit comments