Sha256: 77b73048a27700b45814999ae0c908b91dc77706bb4075e96c9b6c4fed341955

Contents?: true

Size: 554 Bytes

Versions: 47

Compression:

Stored size: 554 Bytes

Contents

# frozen_string_literal: true

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

47 entries across 47 versions & 2 rubygems

Version Path
solidus_backend-2.10.5 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.10.3 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.10.2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.9.6 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.8.6 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.10.1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.9.5 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.10.0 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.9.4 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.6.6 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.7.4 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.8.5 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.9.3 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.9.2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.10.0.beta1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.7.3 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.6.5 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.9.1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.9.0 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-2.9.0.rc.1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb