Sha256: 8301f733cc4bd5d95e8079bd500fcf3ec77ce441241d5c1852356b7489135a3c

Contents?: true

Size: 438 Bytes

Versions: 34

Compression:

Stored size: 438 Bytes

Contents

require 'spec_helper'

module Spree
  describe Spree::OrdersHelper, :type => :helper do
    # Regression test for #2518 + #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

34 entries across 34 versions & 2 rubygems

Version Path
solidus_core-1.1.4 spec/helpers/order_helper_spec.rb
solidus_core-1.0.7 spec/helpers/order_helper_spec.rb
spree_frontend-3.1.5 spec/helpers/order_helper_spec.rb
spree_frontend-3.1.4 spec/helpers/order_helper_spec.rb
spree_frontend-3.1.3 spec/helpers/order_helper_spec.rb
spree_frontend-3.1.2 spec/helpers/order_helper_spec.rb
spree_frontend-3.0.10 spec/helpers/order_helper_spec.rb
spree_frontend-3.1.1 spec/helpers/order_helper_spec.rb
spree_frontend-3.1.0 spec/helpers/order_helper_spec.rb
spree_frontend-3.1.0.rc4 spec/helpers/order_helper_spec.rb
spree_frontend-3.0.9 spec/helpers/order_helper_spec.rb
spree_frontend-3.1.0.rc3 spec/helpers/order_helper_spec.rb
spree_frontend-3.1.0.rc2 spec/helpers/order_helper_spec.rb
spree_frontend-3.1.0.rc1 spec/helpers/order_helper_spec.rb
solidus_core-1.0.6 spec/helpers/order_helper_spec.rb
spree_frontend-3.0.8 spec/helpers/order_helper_spec.rb
spree_frontend-3.0.7 spec/helpers/order_helper_spec.rb
solidus_core-1.1.3 spec/helpers/order_helper_spec.rb
solidus_core-1.0.5 spec/helpers/order_helper_spec.rb
spree_frontend-3.0.6.1 spec/helpers/order_helper_spec.rb