Sha256: 3aa9fe6ea751e2f40d2860eb7e824b8698408c40f9fc2ca8bcb12c95e3951425
Contents?: true
Size: 544 Bytes
Versions: 39
Compression:
Stored size: 544 Bytes
Contents
# frozen_string_literal = true RSpec.describe :safe_join do link :safe_join, from: :ree_text it { expect(safe_join(["<p>foo</p>", "<p>bar</p>"], sep: "<br />")).to eq("<p>foo</p><br /><p>bar</p>") expect(safe_join(["a", ["b", "c"]], sep: ":")).to eq("a:b:c") expect(safe_join(['"a"', ["<b>", "<c>"]], sep: " <br/> ")).to eq(""a" <br/> <b> <br/> <c>") expect(safe_join(["a", "b"])).to eq("a$b") expect(safe_join(["a", "b"], sep: "|")).to eq("a|b") } end
Version data entries
39 entries across 39 versions & 1 rubygems