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_core-1.3.0.rc2 | spec/helpers/order_helper_spec.rb |
solidus_core-1.3.0.rc1 | spec/helpers/order_helper_spec.rb |
solidus_core-1.3.0.beta1 | spec/helpers/order_helper_spec.rb |