Sha256: 53b97074eb0adee4f91cdb19d7a5098883d0cdc5aa52424ac1b710137c47cc1a
Contents?: true
Size: 480 Bytes
Versions: 6
Compression:
Stored size: 480 Bytes
Contents
require 'spec_helper' describe Spree::Admin::ShippingMethodsController, type: :controller do stub_authorization! # Regression test for #1240 it "should not hard-delete shipping methods" do shipping_method = stub_model(Spree::ShippingMethod) allow(Spree::ShippingMethod).to receive_messages find: shipping_method expect(shipping_method.deleted_at).to be_nil spree_delete :destroy, id: 1 expect(shipping_method.reload.deleted_at).not_to be_nil end end
Version data entries
6 entries across 6 versions & 1 rubygems