diff options
Diffstat (limited to 'spec/controllers/spree/api/users_controller_spec.rb')
-rw-r--r-- | spec/controllers/spree/api/users_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/spree/api/users_controller_spec.rb b/spec/controllers/spree/api/users_controller_spec.rb index 62011d1..470c837 100644 --- a/spec/controllers/spree/api/users_controller_spec.rb +++ b/spec/controllers/spree/api/users_controller_spec.rb @@ -11,7 +11,7 @@ RSpec.describe Spree::Api::UsersController, type: :controller do let!(:subscription) { create :subscription, :with_line_item, user: user } describe 'patch /update' do - subject { patch :update, params } + subject { patch :update, params: params } let(:params) do { @@ -38,7 +38,7 @@ RSpec.describe Spree::Api::UsersController, type: :controller do it 'updates the subscription line items' do subject - line_item = subscription.line_items(true).first + line_item = subscription.line_items.reload.first expect(line_item).to have_attributes(line_item_attributes) end |