diff options
author | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-06-15 17:42:12 +0200 |
---|---|---|
committer | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-06-15 17:47:11 +0200 |
commit | d187846447f1c8c85dbf443d9ce941e0166f9d5e (patch) | |
tree | 7977353fc4c98388a076b0020da744d215158f9b /spec | |
parent | 13eabbdc367d0117b665ec75de80fd671f636a58 (diff) |
Redirect admins to subscription edit page after creation/update
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/spree/admin/subscriptions_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/spree/admin/subscriptions_controller_spec.rb b/spec/controllers/spree/admin/subscriptions_controller_spec.rb index 36df187..d4de33c 100644 --- a/spec/controllers/spree/admin/subscriptions_controller_spec.rb +++ b/spec/controllers/spree/admin/subscriptions_controller_spec.rb @@ -52,7 +52,7 @@ RSpec.describe Spree::Admin::SubscriptionsController, type: :request do } end - it { is_expected.to redirect_to spree.admin_subscriptions_path } + it { is_expected.to redirect_to spree.edit_admin_subscription_path(subscription) } it 'updates the subscription attributes', :aggregate_failures do expect { subject }.to change { subscription.reload.actionable_date }.to expected_date |