spec/server/models/address_spec.rb in stockor-0.1.9 vs spec/server/models/address_spec.rb in stockor-0.2
- old
+ new
@@ -1,10 +1,11 @@
require_relative '../spec_helper'
class AddressSpec < Skr::TestCase
- it "can be instantiated" do
- model = Address.new
- model.must_be_instance_of(Address)
+
+ it "can be converted to plain string" do
+ address = skr_address(:hg_billing).to_s(include: [:email,:phone])
+ assert_equal(address, "Hansel and Gretel\n499 Julianne Radial\nSouth Timmyville WI, 38200\nschuyler@krajcik.name\n379-772-4947 x945")
end
end