Sha256: b7f438da13e6b4e7b4db5cd8bdce1dfced5606802394f72e359fff5dc0cc49dd
Contents?: true
Size: 511 Bytes
Versions: 5
Compression:
Stored size: 511 Bytes
Contents
require 'spec_helper' describe Spree::Admin::ShippingMethodsController, type: :controller do stub_authorization! # Regression test for https://github.com/spree/spree/issues/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 delete :destroy, id: 1 expect(shipping_method.reload.deleted_at).not_to be_nil end end
Version data entries
5 entries across 5 versions & 1 rubygems