Sha256: 7a9c271e7d609bd2e1fe48fbba49cfaf703388babc3b238a2a10c7c671c06ddb

Contents?: true

Size: 517 Bytes

Versions: 6

Compression:

Stored size: 517 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
    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

Version Path
solidus_backend-1.3.2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.3.1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.3.0 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.3.0.rc2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.3.0.rc1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.3.0.beta1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb