From 5bd1e9c37c3fcbe9b969ffc753be4c82d9105f08 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 9 Jan 2021 17:04:58 +0000 Subject: [PATCH] Add rails-controller-testing gem ``` Spree::Admin::PaymentMethodsController#create and #update can create a payment method of a valid type Failure/Error: expect(response).to redirect_to spree.edit_admin_payment_method_path(assigns(:payment_method)) NoMethodError: assigns has been extracted to a gem. To continue using it, add `gem 'rails-controller-testing'` to your Gemfile. # ./spec/controllers/spree/admin/payment_methods_controller_spec.rb:41:in `block (3 levels) in ' ``` --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index 14a96e6f5a..02f70db2c3 100644 --- a/Gemfile +++ b/Gemfile @@ -168,6 +168,7 @@ group :test do gem 'simplecov', require: false gem 'test-prof' gem 'webmock' + gem 'rails-controller-testing' # See spec/spec_helper.rb for instructions # gem 'perftools.rb' end