Sha256: f81a83f2ce3be4da69d466a47e9c2acb73fff9384ea1ebcd6c5ee3f5cb0c7dec

Contents?: true

Size: 508 Bytes

Versions: 43

Compression:

Stored size: 508 Bytes

Contents

require 'spec_helper'

module Spree
  describe Spree::OrdersHelper, type: :helper do
    # Regression test for https://github.com/spree/spree/issues/2518 and https://github.com/spree/spree/issues/2323
    it "truncates HTML correctly in product description" do
      product = double(description: "<strong>" + ("a" * 95) + "</strong> This content is invisible.")
      expected = "<strong>" + ("a" * 95) + "</strong>..."
      expect(truncated_product_description(product)).to eq(expected)
    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
solidus_frontend-2.5.2 spec/helpers/order_helper_spec.rb
solidus_frontend-2.5.1 spec/helpers/order_helper_spec.rb
solidus_frontend-2.5.0 spec/helpers/order_helper_spec.rb
solidus_frontend-2.5.0.rc1 spec/helpers/order_helper_spec.rb
solidus_frontend-2.5.0.beta2 spec/helpers/order_helper_spec.rb
solidus_frontend-2.5.0.beta1 spec/helpers/order_helper_spec.rb
solidus_frontend-2.4.2 spec/helpers/order_helper_spec.rb
solidus_core-2.3.1 spec/helpers/order_helper_spec.rb
solidus_frontend-2.4.1 spec/helpers/order_helper_spec.rb
solidus_core-2.2.2 spec/helpers/order_helper_spec.rb
solidus_core-2.1.1 spec/helpers/order_helper_spec.rb
solidus_core-2.0.3 spec/helpers/order_helper_spec.rb
solidus_core-1.4.2 spec/helpers/order_helper_spec.rb
solidus_core-1.3.2 spec/helpers/order_helper_spec.rb
solidus_frontend-2.4.0 spec/helpers/order_helper_spec.rb
solidus_frontend-2.4.0.rc1 spec/helpers/order_helper_spec.rb
solidus_frontend-2.4.0.beta1 spec/helpers/order_helper_spec.rb
solidus_core-2.3.0 spec/helpers/order_helper_spec.rb
solidus_core-2.3.0.rc3 spec/helpers/order_helper_spec.rb
solidus_core-2.3.0.rc2 spec/helpers/order_helper_spec.rb