Sha256: 909aa868d9f8f50ea03a91f57e45ed01c328a731bf5994acc466cc7d913a52fb

Contents?: true

Size: 526 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

Version Path
solidus_backend-1.2.3 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.2.2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.2.1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.2.0 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.2.0.rc2 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.2.0.rc1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb
solidus_backend-1.2.0.beta1 spec/controllers/spree/admin/shipping_methods_controller_spec.rb