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