Sha256: 77e93bd1acdc3eb450c58ca0a1bede742eddebab9d3b018b917136c224d8c4fc

Contents?: true

Size: 489 Bytes

Versions: 25

Compression:

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

25 entries across 25 versions & 2 rubygems

Version Path
solidus_backend-1.1.4 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.0.7 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.1.5 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.1.4 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.1.3 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.1.2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.0.10 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.1.1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.1.0 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.1.0.rc4 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.0.9 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.1.0.rc3 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.1.0.rc2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.1.0.rc1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.0.6 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.0.8 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.0.7 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.1.3 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.0.5 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
spree_backend-3.0.6.1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb