Sha256: fe280e108bd0245c22aff176cb56d57226c99ebed0e44613c3027b92a46d3326

Contents?: true

Size: 523 Bytes

Versions: 32

Compression:

Stored size: 523 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, params: { id: 1 }
    expect(shipping_method.reload.deleted_at).not_to be_nil
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
solidus_backend-2.5.2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.5.1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.5.0 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.5.0.rc1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.5.0.beta2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.5.0.beta1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.4.2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.4.1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.3.1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.2.2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.1.1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.0.3 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.4.0 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.4.0.rc1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.4.0.beta1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.3.0 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.3.0.rc3 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.3.0.rc2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.3.0.rc1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.3.0.beta1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb