summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorBrendan Deere <brendan.g.deere@gmail.com>2016-12-23 07:46:33 -0800
committerBrendan Deere <brendan@stembolt.com>2017-01-12 13:51:25 -0800
commitd73eb46b554f288e49c9da53628eaf53dfd59493 (patch)
treec510939e1a0b484a40558930356121987551bb54 /spec
parent6e5b1c21e2cfa8bbcb1b7a5d3624207105a753bc (diff)
Subscriptions have their own shipping methods
In order to allow for users to manage subscriptions for other people (family members etc) we are going to store a shipping address directly on the subscription. This way a user can ship different subscriptions to different addresses
Diffstat (limited to 'spec')
-rw-r--r--spec/models/solidus_subscriptions/subscription_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/solidus_subscriptions/subscription_spec.rb b/spec/models/solidus_subscriptions/subscription_spec.rb
index 6a54258..54dd46b 100644
--- a/spec/models/solidus_subscriptions/subscription_spec.rb
+++ b/spec/models/solidus_subscriptions/subscription_spec.rb
@@ -5,6 +5,7 @@ RSpec.describe SolidusSubscriptions::Subscription, type: :model do
it { is_expected.to belong_to :user }
it { is_expected.to belong_to :store }
it { is_expected.to have_many :line_items }
+ it { is_expected.to belong_to :shipping_address }
it { is_expected.to validate_presence_of :user }
it { is_expected.to validate_presence_of :skip_count }